BitLab 0.1.0
BitLab: A Browser for the Bitcoin P2P Network and Blockchain
Loading...
Searching...
No Matches
program_state Struct Reference

The program state structure used to store the state of the program. More...

#include <state.h>

Data Fields

pid_t pid
 
time_t start_time
 
bool started_with_parameters
 
volatile sig_atomic_t exit_flag
 
pthread_mutex_t exit_flag_mutex
 

Detailed Description

The program state structure used to store the state of the program.

Parameters
pidThe process ID of the program.
start_timeThe start time of the program.
started_with_parametersThe flag to indicate if the program started with CLI parameters.
exit_flagThe exit flag of the program.
exit_flag_mutexThe mutex to protect the exit flag.

Definition at line 26 of file state.h.

Field Documentation

◆ exit_flag

volatile sig_atomic_t program_state::exit_flag

Definition at line 31 of file state.h.

Referenced by get_exit_flag(), init_program_state(), and set_exit_flag().

◆ exit_flag_mutex

pthread_mutex_t program_state::exit_flag_mutex

◆ pid

pid_t program_state::pid

Definition at line 28 of file state.h.

Referenced by get_pid(), init_program_state(), and print_program_state().

◆ start_time

time_t program_state::start_time

Definition at line 29 of file state.h.

Referenced by get_elapsed_time(), get_start_time(), and init_program_state().

◆ started_with_parameters

bool program_state::started_with_parameters

Definition at line 30 of file state.h.

Referenced by mark_started_with_parameters(), and print_program_state().


The documentation for this struct was generated from the following file: