CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::Worker::RunModuleTask< T >::EnableQueueGuard Struct Reference

#include <Worker.h>

Public Member Functions

 EnableQueueGuard (SerialTaskQueue *iQueue)
 
 EnableQueueGuard (EnableQueueGuard const &)=delete
 
 EnableQueueGuard (EnableQueueGuard &&iGuard)
 
EnableQueueGuardoperator= (EnableQueueGuard const &)=delete
 
EnableQueueGuardoperator= (EnableQueueGuard &&)=delete
 
 ~EnableQueueGuard ()
 

Public Attributes

SerialTaskQueuequeue_
 

Detailed Description

template<typename T>
struct edm::Worker::RunModuleTask< T >::EnableQueueGuard

Definition at line 419 of file Worker.h.

Constructor & Destructor Documentation

template<typename T >
edm::Worker::RunModuleTask< T >::EnableQueueGuard::EnableQueueGuard ( SerialTaskQueue iQueue)
inline

Definition at line 421 of file Worker.h.

421 : queue_{iQueue} {}
template<typename T >
edm::Worker::RunModuleTask< T >::EnableQueueGuard::EnableQueueGuard ( EnableQueueGuard const &  )
delete
template<typename T >
edm::Worker::RunModuleTask< T >::EnableQueueGuard::EnableQueueGuard ( EnableQueueGuard &&  iGuard)
inline

Definition at line 425 of file Worker.h.

425 : queue_{iGuard.queue_} { iGuard.queue_ = nullptr; }
template<typename T >
edm::Worker::RunModuleTask< T >::EnableQueueGuard::~EnableQueueGuard ( )
inline

Definition at line 426 of file Worker.h.

References edm::SerialTaskQueue::resume().

426  {
427  if (queue_) {
428  queue_->resume();
429  }
430  }
bool resume()
Resumes processing if the queue was paused.

Member Function Documentation

template<typename T >
EnableQueueGuard& edm::Worker::RunModuleTask< T >::EnableQueueGuard::operator= ( EnableQueueGuard const &  )
delete
template<typename T >
EnableQueueGuard& edm::Worker::RunModuleTask< T >::EnableQueueGuard::operator= ( EnableQueueGuard &&  )
delete

Member Data Documentation

template<typename T >
SerialTaskQueue* edm::Worker::RunModuleTask< T >::EnableQueueGuard::queue_

Definition at line 420 of file Worker.h.