Lines Matching refs:cupmEvent_t
26 PetscErrorCode allocate(cupmEvent_t *) noexcept;
27 PetscErrorCode deallocate(cupmEvent_t *) noexcept;
32 std::stack<cupmEvent_t> pool_;
47 inline PetscErrorCode CUPMEventPool<T, flags>::allocate(cupmEvent_t *event) noexcept in allocate()
62 inline PetscErrorCode CUPMEventPool<T, flags>::deallocate(cupmEvent_t *in_event) noexcept in deallocate()
66 if (auto event = std::exchange(*in_event, cupmEvent_t{})) { in deallocate()
117 PETSC_NODISCARD cupmEvent_t get() noexcept;
123 cupmEvent_t event_{};
135 …&other) noexcept : pool_type(std::move(other)), event_(util::exchange(other.event_, cupmEvent_t{})) in CUPMEvent()
147 event_ = util::exchange(other.event_, cupmEvent_t{}); in operator =()
153 inline typename CUPMEvent<T>::cupmEvent_t CUPMEvent<T>::get() noexcept in get()
171 return event_ != cupmEvent_t{}; in operator bool()