This is Unofficial EPICS BASE Doxygen Site
poolPriv.h File Reference
#include "epicsThreadPool.h"
#include "ellLib.h"
#include "epicsThread.h"
#include "epicsEvent.h"
#include "epicsMutex.h"
+ Include dependency graph for poolPriv.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  epicsThreadPool
 
struct  epicsJob
 

Macros

#define CHECKCOUNT(pPool)
 

Functions

int createPoolThread (epicsThreadPool *pool)
 

Macro Definition Documentation

#define CHECKCOUNT (   pPool)
Value:
do { \
if (!(pPool)->shutdown) { \
assert((pPool)->threadsAreAwake + (pPool)->threadsSleeping == (pPool)->threadsRunning); \
assert((pPool)->threadsWaking <= (pPool)->threadsSleeping); \
} \
} while(0)
#define assert(exp)
Declare that a condition should be true.
Definition: epicsAssert.h:70
if(yy_init)
Definition: scan.c:972

Definition at line 63 of file poolPriv.h.

Function Documentation

int createPoolThread ( epicsThreadPool pool)

Definition at line 117 of file poolJob.c.

118 {
119  epicsThreadId tid;
120 
121  tid = epicsThreadCreate("PoolWorker",
122  pool->conf.workerPriority,
123  pool->conf.workerStack,
124  &workerMain,
125  pool);
126  if (!tid)
127  return S_pool_noThreads;
128 
129  pool->threadsRunning++;
130  pool->threadsSleeping++;
131  return 0;
132 }
epicsThreadId epicsStdCall epicsThreadCreate(const char *name, unsigned int priority, unsigned int stackSize, EPICSTHREADFUNC funptr, void *parm)
Definition: epicsThread.cpp:33
unsigned int workerStack
unsigned int workerPriority
epicsThreadPoolConfig conf
Definition: poolPriv.h:59
unsigned int threadsRunning
Definition: poolPriv.h:37
unsigned int threadsSleeping
Definition: poolPriv.h:35
#define S_pool_noThreads