#include "pandabase.h"#include "thread.h"#include "conditionVar.h"#include "mutexHolder.h"#include "pointerTo.h"Go to the source code of this file.
Compounds | |
| class | philosopher |
Defines | |
| #define | PRINTMSG(x) { MutexHolder l(print_mutex); x; } |
| #define | N_DINERS 5 |
Functions | |
| double | random_f (double max) |
| int | main (int, char **) |
Variables | |
| Mutex | rand_mutex |
| Mutex | print_mutex |
| Mutex | chopsticks [5] |
| Mutex | room_mutex |
| ConditionVar | room_condition (room_mutex) |
| int | room_occupancy = 0 |
| PointerTo< philosopher > | phils [5] |
Definition in file test_diners.cxx.
|
|
Definition at line 54 of file test_diners.cxx. Referenced by main(), and philosopher::thread_main(). |
|
|
Definition at line 50 of file test_diners.cxx. |
|
||||||||||||
|
Definition at line 119 of file test_diners.cxx. References N_DINERS, phils, and room_mutex. |
|
|
Definition at line 38 of file test_diners.cxx. |
|
|
Definition at line 56 of file test_diners.cxx. |
|
|
Definition at line 68 of file test_diners.cxx. Referenced by main(). |
|
|
Definition at line 48 of file test_diners.cxx. |
|
|
Definition at line 36 of file test_diners.cxx. Referenced by philosopher::thread_main(). |
|
|
|
|
|
Definition at line 62 of file test_diners.cxx. Referenced by main(). |
|
|
Definition at line 65 of file test_diners.cxx. |
1.3