1 #ifndef CUDADataFormats_Common_ProductBase_h 2 #define CUDADataFormats_Common_ProductBase_h 13 class ScopedContextBase;
70 bool changed =
mayReuseStream_.compare_exchange_strong(expected,
false);
bool mayReuseStream() const
std::shared_ptr< std::remove_pointer_t< cudaEvent_t > > SharedEventPtr
ProductBase & operator=(const ProductBase &)=delete
ProductBase(ProductBase &&other)
std::shared_ptr< std::remove_pointer_t< cudaStream_t > > SharedStreamPtr
ProductBase(int device, SharedStreamPtr stream, SharedEventPtr event)
const SharedStreamPtr & streamPtr() const
Namespace of DDCMS conversion namespace.
ProductBase & operator=(ProductBase &&other)
cudaEvent_t event() const
std::atomic< bool > mayReuseStream_
cudaStream_t stream() const