t_mutex.cpp File Reference

#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

mutexguard ()
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 Documentation

#define LOG ( to_print   )     CLASS_EMERGENCY_LOG(program_wide_logger(), to_print)

Definition at line 63 of file t_mutex.cpp.


Function Documentation

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().


Variable Documentation

int concurrent_biters = 0

Definition at line 50 of file t_mutex.cpp.

Referenced by main().

const int DEFAULT_FISH = 32

Definition at line 35 of file t_mutex.cpp.

Referenced by main().

const int DEFAULT_RUN_TIME = 20 * SECOND_ms

Definition at line 38 of file t_mutex.cpp.

Referenced by main().

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

Definition at line 47 of file t_mutex.cpp.

Referenced by test_recursive_locking().

const int MIN_SAME_THREAD_LOCKING_TESTS = 100

Definition at line 46 of file t_mutex.cpp.

Referenced by test_recursive_locking().

istring protected_string

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.


Generated on Sat Aug 30 04:32:58 2008 for HOOPLE Libraries by  doxygen 1.5.1