Start the handler threads with appropriate attributes and data.
More...
Start the handler threads with appropriate attributes and data.
◆ run()
Main function to start the server.
◆ startClockThread()
Start the clock thread.
- Parameters
-
args | Pointer to ThreadSafeArgs structure. |
thread | Pointer 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
-
args | Pointer to ThreadSafeArgs structure. |
thread | Pointer to the pthread_t variable for the controller thread. |
- Returns
- 0 if successful, otherwise 1.
◆ startInputThread()
Start the input thread.
- Parameters
-
args | Pointer to ThreadSafeArgs structure. |
thread | Pointer to the pthread_t variable for the input thread. |
- Returns
- 0 if successful, otherwise 1.
◆ startOutputThread()
Start the output thread.
- Parameters
-
args | Pointer to ThreadSafeArgs structure. |
thread | Pointer to the pthread_t variable for the output thread. |
- Returns
- 0 if successful, otherwise 1.
◆ startStateThread()
Start the state thread.
- Parameters
-
args | Pointer to ThreadSafeArgs structure. |
thread | Pointer to the pthread_t variable for the state thread. |
- Returns
- 0 if successful, otherwise 1.