tf::cudaEvent class

class to create an RAII-styled wrapper over a native CUDA event

A cudaEvent object is an RAII-styled wrapper over a native CUDA event (cudaEvent_t). A cudaEvent object is move-only.

Constructors, destructors, conversion operators

cudaEvent(cudaEvent_t event) explicit
constructs an RAII-styled CUDA event object from the given CUDA event
cudaEvent()
constructs an RAII-styled CUDA event object
cudaEvent(unsigned int flag) explicit
constructs an RAII-styled CUDA event object with the given flag
cudaEvent(const cudaEvent&) deleted
disabled copy constructor
cudaEvent(cudaEvent&& rhs)
move constructor
~cudaEvent()
destructs the CUDA event
operator cudaEvent_t() const
implicit conversion to the native CUDA event (cudaEvent_t)

Public functions

auto operator=(const cudaEvent&) -> cudaEvent& deleted
disabled copy assignment
auto operator=(cudaEvent&& rhs) -> cudaEvent&
move assignment

Function documentation

tf::cudaEvent::operator cudaEvent_t() const

implicit conversion to the native CUDA event (cudaEvent_t)

Returns the underlying event of type cudaEvent_t.