feisty meow concerns codebase  2.140
t_bin_threaded.cpp File Reference
Include dependency graph for t_bin_threaded.cpp:

Go to the source code of this file.

Macros

#define LOG(to_print)   printf("%s\n", (char *)astring(to_print).s());
 
#define randomizer()   _rando
 

Functions

octopus_request_id create_request_id ()
 

Variables

const int MAXIMUM_DATA_PER_ENTITY = 1 * KILOBYTE
 
const int MIN_ADDER_THREAD_PAUSE = 3
 
const int MAX_ADDER_THREAD_PAUSE = 20
 
const int MIN_WHACKER_THREAD_PAUSE = 8
 
const int MAX_WHACKER_THREAD_PAUSE = 70
 
const int MIN_TIDIER_THREAD_PAUSE = 60
 
const int MAX_TIDIER_THREAD_PAUSE = 500
 
const int MIN_MONK_THREAD_PAUSE = 2 * MINUTE_ms
 
const int MAX_MONK_THREAD_PAUSE = 4 * MINUTE_ms
 
const int MINIMUM_ITEMS_ADDED = 1
 
const int MAXIMUM_ITEMS_ADDED = 20
 
const int DEFAULT_THREADS = 90
 
const int DEFAULT_RUN_TIME = 80 * MINUTE_ms
 
const int DATA_DECAY_TIME = 1 * MINUTE_ms
 
const int MONKS_CLEANING_TIME = 10 * SECOND_ms
 
chaos _rando
 
entity_data_bin binger (MAXIMUM_DATA_PER_ENTITY)
 

Macro Definition Documentation

◆ LOG

#define LOG (   to_print)    printf("%s\n", (char *)astring(to_print).s());

Definition at line 88 of file t_bin_threaded.cpp.

◆ randomizer

#define randomizer ( )    _rando

Definition at line 98 of file t_bin_threaded.cpp.

Function Documentation

◆ create_request_id()

Variable Documentation

◆ _rando

chaos _rando

Definition at line 94 of file t_bin_threaded.cpp.

Referenced by test_recursive_locking().

◆ binger

◆ DATA_DECAY_TIME

const int DATA_DECAY_TIME = 1 * MINUTE_ms

Definition at line 82 of file t_bin_threaded.cpp.

◆ DEFAULT_RUN_TIME

const int DEFAULT_RUN_TIME = 80 * MINUTE_ms

Definition at line 78 of file t_bin_threaded.cpp.

◆ DEFAULT_THREADS

const int DEFAULT_THREADS = 90

Definition at line 75 of file t_bin_threaded.cpp.

◆ MAX_ADDER_THREAD_PAUSE

const int MAX_ADDER_THREAD_PAUSE = 20

Definition at line 56 of file t_bin_threaded.cpp.

◆ MAX_MONK_THREAD_PAUSE

const int MAX_MONK_THREAD_PAUSE = 4 * MINUTE_ms

Definition at line 69 of file t_bin_threaded.cpp.

◆ MAX_TIDIER_THREAD_PAUSE

const int MAX_TIDIER_THREAD_PAUSE = 500

Definition at line 64 of file t_bin_threaded.cpp.

◆ MAX_WHACKER_THREAD_PAUSE

const int MAX_WHACKER_THREAD_PAUSE = 70

Definition at line 60 of file t_bin_threaded.cpp.

◆ MAXIMUM_DATA_PER_ENTITY

const int MAXIMUM_DATA_PER_ENTITY = 1 * KILOBYTE

Definition at line 51 of file t_bin_threaded.cpp.

◆ MAXIMUM_ITEMS_ADDED

const int MAXIMUM_ITEMS_ADDED = 20

Definition at line 73 of file t_bin_threaded.cpp.

◆ MIN_ADDER_THREAD_PAUSE

const int MIN_ADDER_THREAD_PAUSE = 3

Definition at line 55 of file t_bin_threaded.cpp.

◆ MIN_MONK_THREAD_PAUSE

const int MIN_MONK_THREAD_PAUSE = 2 * MINUTE_ms

Definition at line 68 of file t_bin_threaded.cpp.

◆ MIN_TIDIER_THREAD_PAUSE

const int MIN_TIDIER_THREAD_PAUSE = 60

Definition at line 63 of file t_bin_threaded.cpp.

◆ MIN_WHACKER_THREAD_PAUSE

const int MIN_WHACKER_THREAD_PAUSE = 8

Definition at line 59 of file t_bin_threaded.cpp.

◆ MINIMUM_ITEMS_ADDED

const int MINIMUM_ITEMS_ADDED = 1

Definition at line 72 of file t_bin_threaded.cpp.

◆ MONKS_CLEANING_TIME

const int MONKS_CLEANING_TIME = 10 * SECOND_ms

Definition at line 85 of file t_bin_threaded.cpp.