t_auto_synch.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 <loggers/file_logger.h>
#include <opsystem/path_configuration.h>
#include <data_struct/static_memory_gremlin.h>

Include dependency graph for t_auto_synch.cpp:

Go to the source code of this file.

Defines

#define LOG(to_print)   log.log(timestamp(true) + istring(to_print))

Functions

int main (int formal(argc), char *formal(argv)[])

Variables

 HOOPLE_STARTUP_CODE
const int DEFAULT_FISH = 64
const int DEFAULT_RUN_TIME = 142 * SECOND_ms
int concurrent_biters = 0
int grab_lock = 0
mutexguard
const istring LOGFILE_NAME
chaos rando


Define Documentation

#define LOG ( to_print   )     log.log(timestamp(true) + istring(to_print))

Definition at line 55 of file t_auto_synch.cpp.


Function Documentation

int main ( int   formal(argc),
char *  formal(argv)[] 
)

Definition at line 120 of file t_auto_synch.cpp.

References guards::alert_message(), amorph< contents >::append(), concurrent_biters, DEFAULT_FISH, DEFAULT_RUN_TIME, amorph< contents >::elements(), guard, chaos::inclusive(), LOG, log(), LOGFILE_NAME, NIL, rando, amorph< contents >::reset(), and portable::sleep_ms().


Variable Documentation

int concurrent_biters = 0

Definition at line 39 of file t_auto_synch.cpp.

const int DEFAULT_FISH = 64

Definition at line 33 of file t_auto_synch.cpp.

const int DEFAULT_RUN_TIME = 142 * SECOND_ms

Definition at line 36 of file t_auto_synch.cpp.

int grab_lock = 0

Definition at line 42 of file t_auto_synch.cpp.

mutex* guard

Definition at line 45 of file t_auto_synch.cpp.

Referenced by main(), and test_recursive_locking().

HOOPLE_STARTUP_CODE

Definition at line 31 of file t_auto_synch.cpp.

const istring LOGFILE_NAME

Initial value:

Definition at line 51 of file t_auto_synch.cpp.

chaos rando

Definition at line 58 of file t_auto_synch.cpp.


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