feisty meow concerns codebase
2.140
|
#include <application/hoople_main.h>
#include <basis/astring.h>
#include <basis/guards.h>
#include <basis/mutex.h>
#include <configuration/application_configuration.h>
#include <loggers/critical_events.h>
#include <loggers/program_wide_logger.h>
#include <mathematics/chaos.h>
#include <processes/ethread.h>
#include <processes/safe_roller.h>
#include <structures/amorph.h>
#include <structures/static_memory_gremlin.h>
#include <timely/time_control.h>
#include <timely/time_stamp.h>
#include <unit_test/unit_base.h>
Go to the source code of this file.
Macros | |
#define | LOG(to_print) CLASS_EMERGENCY_LOG(program_wide_logger::get(), to_print) |
#define | UNIT_BASE_THIS_OBJECT c_testing |
#define | UNIT_BASE_THIS_OBJECT (*this) |
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 = 2 * 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 |
astring | protected_string |
#define LOG | ( | to_print | ) | CLASS_EMERGENCY_LOG(program_wide_logger::get(), to_print) |
Definition at line 78 of file test_mutex.cpp.
#define UNIT_BASE_THIS_OBJECT c_testing |
Definition at line 199 of file test_mutex.cpp.
#define UNIT_BASE_THIS_OBJECT (*this) |
Definition at line 199 of file test_mutex.cpp.
mutex& guard | ( | ) |
Definition at line 71 of file test_mutex.cpp.
Referenced by test_recursive_locking().
void test_recursive_locking | ( | chaos & | _rando | ) |
Definition at line 82 of file test_mutex.cpp.
References _rando, guard(), mathematics::chaos::inclusive(), basis::mutex::lock(), MAX_SAME_THREAD_LOCKING_TESTS, MIN_SAME_THREAD_LOCKING_TESTS, and basis::mutex::unlock().
int concurrent_biters = 0 |
Definition at line 65 of file test_mutex.cpp.
const int DEFAULT_FISH = 32 |
Definition at line 50 of file test_mutex.cpp.
const int DEFAULT_RUN_TIME = 2 * SECOND_ms |
Definition at line 53 of file test_mutex.cpp.
int grab_lock = 0 |
Definition at line 68 of file test_mutex.cpp.
const int MAX_MUTEX_TIMING_TEST = 2000000 |
Definition at line 47 of file test_mutex.cpp.
const int MAX_SAME_THREAD_LOCKING_TESTS = 1000 |
Definition at line 62 of file test_mutex.cpp.
Referenced by test_recursive_locking().
const int MIN_SAME_THREAD_LOCKING_TESTS = 100 |
Definition at line 61 of file test_mutex.cpp.
Referenced by test_recursive_locking().
astring protected_string |
Definition at line 75 of file test_mutex.cpp.
const int THREAD_PAUSE_HIGHEST = 48 |
Definition at line 57 of file test_mutex.cpp.
const int THREAD_PAUSE_LOWEST = 0 |
Definition at line 56 of file test_mutex.cpp.