![]() |
ATLAS Offline Software
|
Helper class for handling CUDA streams. More...
#include <StreamHolder.h>
Public Member Functions | |
| StreamHolder () | |
| Friend declaration(s). | |
| StreamHolder (void *stream, IStreamPoolSvc *pool) | |
| Constructor with the stream and the pool service. | |
| StreamHolder (const StreamHolder &)=delete | |
| Copy constructor. | |
| StreamHolder (StreamHolder &&parent) | |
| Move constructor. | |
| ~StreamHolder () | |
| Destructor. | |
| StreamHolder & | operator= (const StreamHolder &)=delete |
| Copy assignment operator. | |
| StreamHolder & | operator= (StreamHolder &&rhs) |
| Move assignment operator. | |
| operator bool () const | |
| Convenience operator for checking if the holder has a valid object. | |
Private Attributes | |
| void * | m_stream |
| The managed stream. | |
| IStreamPoolSvc * | m_pool |
| The pool that this holder is attached to. | |
Helper class for handling CUDA streams.
This class is used to:
Note that objects of this type can only be moved, they can not be copied.
Definition at line 24 of file StreamHolder.h.
| AthCUDA::StreamHolder::StreamHolder | ( | ) |
Friend declaration(s).
Default constructor
Definition at line 11 of file StreamHolder.cxx.
| AthCUDA::StreamHolder::StreamHolder | ( | void * | stream, |
| IStreamPoolSvc * | pool ) |
Constructor with the stream and the pool service.
Definition at line 16 of file StreamHolder.cxx.
|
delete |
Copy constructor.
| AthCUDA::StreamHolder::StreamHolder | ( | StreamHolder && | parent | ) |
| AthCUDA::StreamHolder::~StreamHolder | ( | ) |
Destructor.
Definition at line 28 of file StreamHolder.cxx.
| AthCUDA::StreamHolder::operator bool | ( | ) | const |
Convenience operator for checking if the holder has a valid object.
Definition at line 50 of file StreamHolder.cxx.
|
delete |
Copy assignment operator.
| StreamHolder & AthCUDA::StreamHolder::operator= | ( | StreamHolder && | rhs | ) |
Move assignment operator.
Definition at line 35 of file StreamHolder.cxx.
|
private |
The pool that this holder is attached to.
Definition at line 55 of file StreamHolder.h.
|
private |
The managed stream.
Definition at line 53 of file StreamHolder.h.