39#ifndef _HttpCmdThreadPool_h
40#define _HttpCmdThreadPool_h
43#include <DoubleList.h>
49 HttpCmdThreadState_Idle,
50 HttpCmdThreadState_RunDir,
51 HttpCmdThreadState_Exit
64 HttpCmdThreadState state;
122 DoubleList runningList;
HttpCmdThreadPool(HttpServer *server, ThreadPriority priority, int stackSize)
Create an instance of HttpCmdThreadPool and bind the thread pool to an instance of the HttpServer cla...
Definition: HttpCmdThreadPool.h:151
BA_API void HttpCmdThreadPool_destructor(HttpCmdThreadPool *o)
Wait for worker completion and detach the pool.
struct HttpCmdThreadPool HttpCmdThreadPool
An instance of this class provides a thread pool to an instance of the HttpServer class.
ThreadPriority
Portable priority choices, mapped to the target operating system.
Definition: ThreadLib.h:61
BA_API void HttpCmdThreadPool_constructor(HttpCmdThreadPool *o, HttpServer *server, ThreadPriority priority, int stackSize)
Create workers and bind the pool to a server.
~HttpCmdThreadPool()
Terminates all threads in the thread pool and deregisters the thread pool in the HttpServer instance.
Definition: HttpCmdThreadPool.h:155
Worker-pool dispatch interface borrowed by HttpServer.
Definition: HttpCmdThreadPoolIntf.h:63
An instance of this class provides a thread pool to an instance of the HttpServer class.
Definition: HttpCmdThreadPool.h:82
The HttpCommand class is a container class for the HttpRequest and HttpResponse command pair.
Definition: HttpServer.h:2151
An instance of the HttpDir class, which is a collection of zero or more resources,...
Definition: HttpServer.h:2777
The Web Server.
Definition: HttpServer.h:3393
The SoDisp dispatches any socket connection that contains data by calling the SoDispCon::execute memb...
Definition: SoDisp.h:91
A simple semaphore implementation.
Definition: ThreadLib.h:228
A simple thread class.
Definition: ThreadLib.h:261