Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c3c82965ed
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (31 sloc) 0.913 kb
#ifndef BIGQ_H
#define BIGQ_H
#include <pthread.h>
#include <iostream>
#include "Pipe.h"
#include<vector>
#include "File.h"
#include "Record.h"
using namespace std;
void *processBigQ(void*);
int GetRecSize (Record* r);
class BigQ {
friend void *processBigQ(void *);
friend bool compareRecordsFunc(Record * left, Record * right);
public:
BigQ (Pipe &inputPipe, Pipe &outputPipe, OrderMaker &sortOrder, int runLength);
~BigQ();
private:
Pipe& inputPipe;
Pipe& outputPipe;
OrderMaker& sortOrder;
int runLength;
static char *tempDirForRun;
vector<int> runPagePos;
int totalPagesWritten;
File file;
//char myFile[20];
char *myFile;
pthread_t workerThread;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.