Pol  Revision:cb584c9
polsig.h
Go to the documentation of this file.
1 
7 #ifndef __POLSIG_H
8 #define __POLSIG_H
9 namespace Pol
10 {
11 namespace Core
12 {
14 void signal_catch_thread();
15 
16 struct PolSig
17 {
18  PolSig();
20  volatile bool report_status_signalled;
21 
22  // 1-100: scripts_thread
23  // 100-109: step_scripts
24  // 110-130: run_ready
25  // 131-140: check_blocked
27  // 0-99: tasks_thread
28  // 100-199: check_scheduled_tasks
29  // 200-299: update_sysload
30  // 300-399: update_rpm
31  // 400-499: regen_stats
32  // 500-599: reload_account_data
33  // 600-699: reload_pol_cfg_task
34  // 700-799: regen_resources
35  // 800-899: swing_task_func
36  // 900-999: SpellTask::on_run
37  // 1000-1099: RepSystem::repsys_task
39 
40  // 100-199: transmit_encrypted
41  // 200-299: Client::xmit
42  // 300-399: Client::queue_data
43  unsigned active_client_thread_checkpoint; // only set this in guarded code
44 
46 };
47 }
48 #define THREAD_CHECKPOINT( thread, check ) \
49  Core::stateManager.polsig.thread##_thread_checkpoint = check
50 #define FUNCTION_CHECKPOINT( func, check ) \
51  Core::stateManager.polsig.func##_function_checkpoint = check
52 }
53 #endif
void install_signal_handlers()
Definition: polsig.cpp:80
unsigned scripts_thread_checkpoint
Definition: polsig.h:26
volatile bool reload_configuration_signalled
Definition: polsig.h:19
unsigned tasks_thread_checkpoint
Definition: polsig.h:38
volatile bool report_status_signalled
Definition: polsig.h:20
void signal_catch_thread()
Definition: polsig.cpp:110
unsigned check_attack_after_move_function_checkpoint
Definition: polsig.h:45
Definition: berror.cpp:12
unsigned active_client_thread_checkpoint
Definition: polsig.h:43