I am having problems calling my functions from my main program. These functions HAVE to be in my class. How do I access them from my int main()?
#inc
karlphillip was right, you need to pass by pointer instead of reference
BTW, following line are mistake also, the pthread_create accept and pthread_t instead of pthread_mutex_t
pthread_create( &mutex1, NULL, reader_writer, void); pthread_create( &wrt, NULL, reader_writer, void);
pthread_create( &mutex1, NULL, reader_writer, void);
pthread_create( &wrt, NULL, reader_writer, void);