Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

philosopher Class Reference

Inheritance diagram for philosopher:

Thread TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 philosopher (const int id)

Private Member Functions

void thread_main ()
void * make_arg (const int i)

Private Attributes

int _id

Constructor & Destructor Documentation

philosopher::philosopher const int  id  )  [inline]
 

Definition at line 111 of file test_diners.cxx.

References id.


Member Function Documentation

void* philosopher::make_arg const int  i  )  [inline, private]
 

Definition at line 109 of file test_diners.cxx.

References int().

void philosopher::thread_main  )  [inline, private, virtual]
 

Implements Thread.

Definition at line 70 of file test_diners.cxx.

References chopsticks, count, Mutex::lock(), N_DINERS, PRINTMSG, r, rand_mutex, random_f(), Mutex::release(), room_condition, room_mutex, room_occupancy, ConditionVar::signal(), Thread::sleep(), and t.


Member Data Documentation

int philosopher::_id [private]
 

Definition at line 69 of file test_diners.cxx.


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 00:13:07 2003 for Panda by doxygen1.3