RAII object that calls the reference count release function on the held PI object on destruction. More...
Public Member Functions | |
ReleaseGuard ()=delete | |
ReleaseGuard (T Obj) | |
Obj can be nullptr . More... | |
ReleaseGuard (ReleaseGuard &&Other) noexcept | |
ReleaseGuard (const ReleaseGuard &)=delete | |
~ReleaseGuard () | |
Calls the related PI object release function if the object held is not nullptr or if dismiss has not been called. More... | |
ReleaseGuard & | operator= (const ReleaseGuard &)=delete |
ReleaseGuard & | operator= (ReleaseGuard &&Other) |
void | dismiss () |
End the guard and do not release the reference count of the held PI object. More... | |
ReleaseGuard ()=delete | |
ReleaseGuard (T Obj) | |
Obj can be nullptr . More... | |
ReleaseGuard (ReleaseGuard &&Other) noexcept | |
ReleaseGuard (const ReleaseGuard &)=delete | |
~ReleaseGuard () | |
Calls the related PI object release function if the object held is not nullptr or if dismiss has not been called. More... | |
ReleaseGuard & | operator= (const ReleaseGuard &)=delete |
ReleaseGuard & | operator= (ReleaseGuard &&Other) |
void | dismiss () |
End the guard and do not release the reference count of the held PI object. More... | |
RAII object that calls the reference count release function on the held PI object on destruction.
The dismiss
function stops the release from happening on destruction.
Definition at line 728 of file pi_cuda.cpp.
|
delete |
|
inlineexplicit |
Obj can be nullptr
.
Definition at line 763 of file pi_cuda.cpp.
|
inlinenoexcept |
Definition at line 764 of file pi_cuda.cpp.
|
delete |
|
inline |
Calls the related PI object release function if the object held is not nullptr
or if dismiss
has not been called.
Definition at line 772 of file pi_cuda.cpp.
References cl::sycl::detail::pi::die().
|
delete |
|
inlineexplicit |
Obj can be nullptr
.
Definition at line 653 of file pi_hip.cpp.
|
inlinenoexcept |
Definition at line 654 of file pi_hip.cpp.
|
delete |
|
inline |
Calls the related PI object release function if the object held is not nullptr
or if dismiss
has not been called.
Definition at line 662 of file pi_hip.cpp.
References cl::sycl::detail::pi::die().
|
inline |
End the guard and do not release the reference count of the held PI object.
Definition at line 686 of file pi_hip.cpp.
|
inline |
End the guard and do not release the reference count of the held PI object.
Definition at line 796 of file pi_cuda.cpp.
Referenced by cuda_piMemBufferPartition(), and hip_piMemBufferPartition().
|
delete |
|
delete |
|
inline |
Definition at line 678 of file pi_hip.cpp.
|
inline |
Definition at line 788 of file pi_cuda.cpp.