#include <server_thread_pool.h>
◆ ServerThreadPool()
| ServerThreadPool::ServerThreadPool |
( |
MultiThreadedServerInterface * |
server, |
|
|
std::string |
ip, |
|
|
int |
port, |
|
|
int |
threadCount = 30, |
|
|
int |
queueCapacity = 20 |
|
) |
| |
|
inline |
◆ start()
| void ServerThreadPool::start |
( |
| ) |
|
|
inline |
◆ stop()
| void ServerThreadPool::stop |
( |
| ) |
|
|
inline |
◆ threadHandler()
| void ServerThreadPool::threadHandler |
( |
| ) |
|
|
inline |
◆ c_cons
| std::condition_variable ServerThreadPool::c_cons |
|
private |
◆ c_prod
| std::condition_variable ServerThreadPool::c_prod |
|
private |
◆ connectionQueue
| std::queue<int> ServerThreadPool::connectionQueue |
|
private |
◆ ip
| std::string ServerThreadPool::ip |
|
private |
◆ port
| int ServerThreadPool::port |
|
private |
◆ queueCapacity
| int ServerThreadPool::queueCapacity |
|
private |
◆ queueLock
| std::mutex ServerThreadPool::queueLock |
|
private |
◆ server
◆ socketConnection
| int ServerThreadPool::socketConnection |
|
private |
◆ threadCount
| int ServerThreadPool::threadCount |
|
private |
◆ threads
| std::vector<std::thread> ServerThreadPool::threads |
|
private |
The documentation for this class was generated from the following file: