lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Task.hh File Reference

Task, a thread with a queue of Routine jobs, and its helpers. More...

#include "QueueSlowSafe.hh"
#include "Semaphore.hh"
#include "TaskObject.hh"
#include "Routine.hh"

Classes

class  Pds::TaskDelete
 Routine queued by Task::destroy() so that the task deletes itself from its own thread (per the code comment). More...
 
class  Pds::Task
 Thread that runs Routine jobs from a queue in order (TaskMainLoop). More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 

Typedefs

typedef void *(* Pds::TaskFunction) (void *)
 C-linkage thread entry function type: takes and returns a void pointer.
 

Functions

void * Pds::TaskMainLoop (void *)
 Thread body of a Task (task is the Task): run every queued Routine, then wait on the pending semaphore for more, forever.
 

Detailed Description

Task, a thread with a queue of Routine jobs, and its helpers.