#ifndef RW_THREADS_H #define RW_THREADS_H #include struct ThreadRec { int me; /* my thread number */ int buffsize; pthread_mutex_t *Lock; /* global lock */ pthread_cond_t *Wait; /* global cond var */ int *SendRemaining; /* global counter of unsent data */ int *RecvRemaining; /* global count of unrecevd data */ int *Go; /* Go signal (to help timing) */ void *q; }; void *ReaderThread(void *arg); void *WriterThread(void *arg); #endif