Go to the source code of this file.
◆ HttpCmdThreadPoolIntf_doDir
| #define HttpCmdThreadPoolIntf_doDir |
( |
|
o, |
|
|
|
cmd, |
|
|
|
dir |
|
) |
| (o)->doDir(o, cmd, dir) |
Attempt to dispatch HTTP work to a worker while the server mutex is held.
- Parameters
-
| o | Required initialized pool interface. |
| cmd | Borrowed live command whose processing is transferred on success. |
| dir | Borrowed directory from which service starts; retain it through work. |
- Returns
- 0 if accepted for worker execution; nonzero declines the transfer and lets HttpServer process it on the current thread. This is not a response or completion status. Implementations must preserve the server's command/mutex lifecycle. Supplied implementations are HttpCmdThreadPool and LThreadMgr.
◆ HttpCmdThreadPoolIntf
Worker-pool dispatch interface borrowed by HttpServer.
◆ HttpCmdThreadPoolIntf_DoDir
Attempt to dispatch HTTP work to a worker while the server mutex is held.
- Parameters
-
| o | Required initialized pool interface. |
| cmd | Borrowed live command whose processing is transferred on success. |
| dir | Borrowed directory from which service starts; retain it through work. |
- Returns
- 0 if accepted for worker execution; nonzero declines the transfer and lets HttpServer process it on the current thread. This is not a response or completion status. Implementations must preserve the server's command/mutex lifecycle. Supplied implementations are HttpCmdThreadPool and LThreadMgr.