StateServer 1.6.9
Compiled `c` application to handle task state logging and timing.
|
Global condition flags ensure proper cycling of server state. More...
Variables | |
volatile sig_atomic_t | running |
Flag indicating whether the server is running. | |
volatile sig_atomic_t | reset_clock |
Flag indicating whether to reset the main reference clock tick. | |
volatile sig_atomic_t | logging |
Flag indicating whether the logs are being added to. | |
volatile sig_atomic_t | init |
Flag indicating if initialization completed. | |
volatile sig_atomic_t | handling_clock |
Condition indicating we are handling the clock thread. | |
volatile sig_atomic_t | handling_controller |
Condition indicating we are handling the controller thread. | |
volatile sig_atomic_t | handling_input |
Condition indicating we are handling the input thread. | |
volatile sig_atomic_t | handling_state |
Condition indicating we are handling the state thread. | |
volatile sig_atomic_t | handling_output |
Condition indicating we are handling the output thread. | |
Global condition flags ensure proper cycling of server state.
There are 3 main "global" flags that pertain to the status of the state server:
Additionally, there are 5 "handling" flags ensure correct cycling of thread state:
handling_clock
handling_controller
handling_input
handling_state
handling_output
At any instant that a condition signal is issued, only one of these 5 flags should be 1 (the others should be 0).
|
extern |
Condition indicating we are handling the clock thread.
Flag indicating we are in the clock handling thread condition. >
|
extern |
Condition indicating we are handling the controller thread.
Flag indicating we are in the controller handling thread condition. >
|
extern |
Condition indicating we are handling the input thread.
Flag indicating we are in the input handling thread condition. >
|
extern |
Condition indicating we are handling the output thread.
Flag indicating we are in the output handling thread condition. >
|
extern |
Condition indicating we are handling the state thread.
Flag indicating we are in the state handling thread condition. >
|
extern |
Flag indicating if initialization completed.
Flag indicating if initialization completed.
|
extern |
Flag indicating whether the logs are being added to.
Flag indicating whether the logs are being added to
|
extern |
Flag indicating whether to reset the main reference clock tick.
Flag indicating whether to reset the main clock tick which millisecond timestamps in logs are referenced to.
|
extern |
Flag indicating whether the server is running.
Flag indicating whether the server is running