StateServer 1.6.9
Compiled `c` application to handle task state logging and timing.
Loading...
Searching...
No Matches
Global Condition Flags

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.
 

Detailed Description

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:

  1. CLOCK - handling_clock
  2. CONTROLLER - handling_controller
  3. INPUT - handling_input
  4. STATE - handling_state
  5. OUTPUT - 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).

Variable Documentation

◆ handling_clock

volatile sig_atomic_t handling_clock
extern

Condition indicating we are handling the clock thread.

Flag indicating we are in the clock handling thread condition. >

◆ handling_controller

volatile sig_atomic_t handling_controller
extern

Condition indicating we are handling the controller thread.

Flag indicating we are in the controller handling thread condition. >

◆ handling_input

volatile sig_atomic_t handling_input
extern

Condition indicating we are handling the input thread.

Flag indicating we are in the input handling thread condition. >

◆ handling_output

volatile sig_atomic_t handling_output
extern

Condition indicating we are handling the output thread.

Flag indicating we are in the output handling thread condition. >

◆ handling_state

volatile sig_atomic_t handling_state
extern

Condition indicating we are handling the state thread.

Flag indicating we are in the state handling thread condition. >

◆ init

volatile sig_atomic_t init
extern

Flag indicating if initialization completed.

Flag indicating if initialization completed.

◆ logging

volatile sig_atomic_t logging
extern

Flag indicating whether the logs are being added to.

Flag indicating whether the logs are being added to

◆ reset_clock

volatile sig_atomic_t reset_clock
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.

◆ running

volatile sig_atomic_t running
extern

Flag indicating whether the server is running.

Flag indicating whether the server is running