This class represents the operations the threads in the main function of Server.cpp will execute.
More...
|
void | PainterThreadFunction (std::unique_ptr< sf::TcpSocket > socketP, int socketIndex) |
| The PainterThreadFunction represents the function the painterThread will execute. It will allow a painterThread to enqueue command information into a queue and then notify the picassoThread that it needs to send that command to the relevant clients. More...
|
|
void | PicassoThreadFunction () |
| The PicassoThreadFunction represents the function that the picassoThread will execute. This function will be notified by the PainterThreadFunction that it needs to execute. It dequeues information from the shared queue and sends it to the relevant clients. More...
|
|
This class represents the operations the threads in the main function of Server.cpp will execute.
◆ PainterThreadFunction()
void Painter::PainterThreadFunction |
( |
std::unique_ptr< sf::TcpSocket > |
socketP, |
|
|
int |
socketIndex |
|
) |
| |
|
inline |
The PainterThreadFunction represents the function the painterThread will execute. It will allow a painterThread to enqueue command information into a queue and then notify the picassoThread that it needs to send that command to the relevant clients.
- Parameters
-
socketP | a unique-pointer representing a TcpSocket from the SFML library, this is the socket the thread will use to receive information, it will be stored in a map with the socketIndex as the key. |
socketIndex | the key within the map that will have the socketP as the value. |
◆ PicassoThreadFunction()
void Painter::PicassoThreadFunction |
( |
| ) |
|
|
inline |
The PicassoThreadFunction represents the function that the picassoThread will execute. This function will be notified by the PainterThreadFunction that it needs to execute. It dequeues information from the shared queue and sends it to the relevant clients.
The documentation for this class was generated from the following file: