Inheritance diagram for philosopher:
Public Member Functions | |
philosopher (const int id) | |
Private Member Functions | |
void | thread_main () |
void * | make_arg (const int i) |
Private Attributes | |
int | _id |
|
Definition at line 111 of file test_diners.cxx. References id. |
|
Definition at line 109 of file test_diners.cxx. References int(). |
|
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. |
|
Definition at line 69 of file test_diners.cxx. |