OBLBasic_Table - void getCID(OBLBasicTable*t int philosopher int result[2 chopStick*getStick(OBLBasicTable*t int stick int debug void

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _OBLBasicTable_H_ #define _OBLBasicTable_H_ #include "sthread.h" static const int NO_PHILOSOPHER = -1; typedef int CID; typedef struct chopStick{ CID cid; struct chopStick *nextStick; int holder; } chopStick; typedef struct OBLBasicTableS{ chopStick *baseStick; int lastStick; smutex_t *tabmutex; scond_t *tabcond; int eaters; } OBLBasicTable;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: void getCID(OBLBasicTable *t, int philosopher, int result[2]); chopStick *getStick(OBLBasicTable *t, int stick, int debug); void OBLT_init(OBLBasicTable *t, int nPlates); void OBLT_startEating(OBLBasicTable *t, int philosopher); void OBLT_doneEating(OBLBasicTable *t, int philosopher); #endif...
View Full Document

This document was uploaded on 04/05/2010.

Ask a homework question - tutors are online