Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
HttpCmdThreadPoolIntf.h File Reference
#include <HttpServer.h>
Include dependency graph for HttpCmdThreadPoolIntf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HttpCmdThreadPoolIntf
 Worker-pool dispatch interface borrowed by HttpServer. More...
 

Macros

#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. More...
 

Typedefs

typedef int(* HttpCmdThreadPoolIntf_DoDir) (struct HttpCmdThreadPoolIntf *o, HttpCommand *cmd, HttpDir *dir)
 Attempt to dispatch HTTP work to a worker while the server mutex is held. More...
 
typedef struct HttpCmdThreadPoolIntf HttpCmdThreadPoolIntf
 Worker-pool dispatch interface borrowed by HttpServer. More...
 

Macro Definition Documentation

◆ 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
oRequired initialized pool interface.
cmdBorrowed live command whose processing is transferred on success.
dirBorrowed 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.

Typedef Documentation

◆ HttpCmdThreadPoolIntf

Worker-pool dispatch interface borrowed by HttpServer.

◆ HttpCmdThreadPoolIntf_DoDir

typedef int(* HttpCmdThreadPoolIntf_DoDir) (struct HttpCmdThreadPoolIntf *o, HttpCommand *cmd, HttpDir *dir)

Attempt to dispatch HTTP work to a worker while the server mutex is held.

Parameters
oRequired initialized pool interface.
cmdBorrowed live command whose processing is transferred on success.
dirBorrowed 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.