lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::TaskWait Class Reference

Routine that, once queued on a Task, lets the caller block until the task has run all jobs queued before it (per the file comment). More...

#include <TaskWait.hh>

Inherits Pds::Routine.

Public Member Functions

 TaskWait (Task *task)
 Create the semaphore empty and queue this object on task.
 
virtual ~TaskWait ()
 Does nothing; empty virtual destructor.
 
void wait ()
 Block until the task has run this routine (takes the semaphore that routine() gives).
 

Detailed Description

Routine that, once queued on a Task, lets the caller block until the task has run all jobs queued before it (per the file comment).

Constructor & Destructor Documentation

◆ TaskWait()

Pds::TaskWait::TaskWait ( Task *  task)
inline

Create the semaphore empty and queue this object on task.

◆ ~TaskWait()

virtual Pds::TaskWait::~TaskWait ( )
inlinevirtual

Does nothing; empty virtual destructor.

Member Function Documentation

◆ wait()

void Pds::TaskWait::wait ( )
inline

Block until the task has run this routine (takes the semaphore that routine() gives).


The documentation for this class was generated from the following file: