StateServer 1.6.9
Compiled `c` application to handle task state logging and timing.
Loading...
Searching...
No Matches
Startup Routines

Start the handler threads with appropriate attributes and data.
More...

Functions

int startClockThread (ThreadSafeArgs *args, pthread_t *thread)
 Start the clock thread.
 
int startInputThread (ThreadSafeArgs *args, pthread_t *thread)
 Start the input thread.
 
int startOutputThread (ThreadSafeArgs *args, pthread_t *thread)
 Start the output thread.
 
int startStateThread (ThreadSafeArgs *args, pthread_t *thread)
 Start the state thread.
 
int startControllerThread (ThreadSafeArgs *args, pthread_t *thread)
 Start the controller thread.
 
void run (ThreadSafeArgs *args)
 Main function to start the server.
 

Detailed Description

Start the handler threads with appropriate attributes and data.

Function Documentation

◆ run()

void run ( ThreadSafeArgs * args)

Main function to start the server.

◆ startClockThread()

int startClockThread ( ThreadSafeArgs * args,
pthread_t * thread )

Start the clock thread.

Parameters
argsPointer to ThreadSafeArgs structure.
threadPointer to the pthread_t variable for the clock thread.
Returns
0 if successful, otherwise 1.

◆ startControllerThread()

int startControllerThread ( ThreadSafeArgs * args,
pthread_t * thread )

Start the controller thread.

Parameters
argsPointer to ThreadSafeArgs structure.
threadPointer to the pthread_t variable for the controller thread.
Returns
0 if successful, otherwise 1.

◆ startInputThread()

int startInputThread ( ThreadSafeArgs * args,
pthread_t * thread )

Start the input thread.

Parameters
argsPointer to ThreadSafeArgs structure.
threadPointer to the pthread_t variable for the input thread.
Returns
0 if successful, otherwise 1.

◆ startOutputThread()

int startOutputThread ( ThreadSafeArgs * args,
pthread_t * thread )

Start the output thread.

Parameters
argsPointer to ThreadSafeArgs structure.
threadPointer to the pthread_t variable for the output thread.
Returns
0 if successful, otherwise 1.

◆ startStateThread()

int startStateThread ( ThreadSafeArgs * args,
pthread_t * thread )

Start the state thread.

Parameters
argsPointer to ThreadSafeArgs structure.
threadPointer to the pthread_t variable for the state thread.
Returns
0 if successful, otherwise 1.