Go to the documentation of this file. 1 #ifndef FWCore_Concurrency_WaitingTaskList_h
2 #define FWCore_Concurrency_WaitingTaskList_h
std::atomic< WaitNode * > m_head
std::unique_ptr< WaitNode[]> m_nodeCache
std::atomic< bool > m_waiting
std::atomic< unsigned int > m_lastAssignedCacheIndex
std::atomic< WaitNode * > m_next
tbb::task_group * m_group
void reset()
Resets access to the resource so that added tasks will wait.
void presetTaskAsFailed(std::exception_ptr iExcept)
void doneWaiting(std::exception_ptr iPtr)
Signals that the resource is now available and tasks should be spawned.
WaitNode * nextNode() const
~WaitingTaskList()=default
unsigned int m_nodeCacheSize
void add(tbb::task_group *, WaitingTask *)
Adds task to the waiting list.
WaitingTaskList(unsigned int iInitialSize=2)
Constructor.
WaitNode * createNode(tbb::task_group *iGroup, WaitingTask *iTask)
std::exception_ptr m_exceptionPtr
void setNextNode(WaitNode *iNext)
const WaitingTaskList & operator=(const WaitingTaskList &)=delete
#define CMS_THREAD_GUARD(_var_)