#include <basis/chaos.h>#include <basis/guards.h>#include <basis/istring.h>#include <basis/mutex.h>#include <data_struct/amorph.cpp>#include <mechanisms/ithread.h>#include <mechanisms/safe_roller.h>#include <mechanisms/time_stamp.h>#include <opsystem/application_shell.h>#include <loggers/console_logger.h>#include <opsystem/path_configuration.h>#include <data_struct/static_memory_gremlin.h>Include dependency graph for t_mutex.cpp:

Go to the source code of this file.
Defines | |
| #define | LOG(to_print) CLASS_EMERGENCY_LOG(program_wide_logger(), to_print) |
Functions | |
| mutex & | guard () |
| void | test_recursive_locking (chaos &_rando) |
Variables | |
| const int | MAX_MUTEX_TIMING_TEST = 2000000 |
| const int | DEFAULT_FISH = 32 |
| const int | DEFAULT_RUN_TIME = 20 * SECOND_ms |
| const int | THREAD_PAUSE_LOWEST = 0 |
| const int | THREAD_PAUSE_HIGHEST = 48 |
| const int | MIN_SAME_THREAD_LOCKING_TESTS = 100 |
| const int | MAX_SAME_THREAD_LOCKING_TESTS = 1000 |
| int | concurrent_biters = 0 |
| int | grab_lock = 0 |
| istring | protected_string |
| #define LOG | ( | to_print | ) | CLASS_EMERGENCY_LOG(program_wide_logger(), to_print) |
Definition at line 63 of file t_mutex.cpp.
| mutex& guard | ( | ) |
Definition at line 56 of file t_mutex.cpp.
| void test_recursive_locking | ( | chaos & | _rando | ) |
Definition at line 67 of file t_mutex.cpp.
References guard, chaos::inclusive(), mutex_base::lock(), MAX_SAME_THREAD_LOCKING_TESTS, MIN_SAME_THREAD_LOCKING_TESTS, and mutex_base::unlock().
| int concurrent_biters = 0 |
| const int DEFAULT_FISH = 32 |
| const int DEFAULT_RUN_TIME = 20 * SECOND_ms |
| int grab_lock = 0 |
Definition at line 53 of file t_mutex.cpp.
| const int MAX_MUTEX_TIMING_TEST = 2000000 |
Definition at line 32 of file t_mutex.cpp.
| const int MAX_SAME_THREAD_LOCKING_TESTS = 1000 |
| const int MIN_SAME_THREAD_LOCKING_TESTS = 100 |
Definition at line 60 of file t_mutex.cpp.
| const int THREAD_PAUSE_HIGHEST = 48 |
Definition at line 42 of file t_mutex.cpp.
| const int THREAD_PAUSE_LOWEST = 0 |
Definition at line 41 of file t_mutex.cpp.
1.5.1