|
Uni20
Asynchronous tensor and runtime library.
|
Move-only exclusive lease of one provider-resource pool slot. More...
#include <resource_pool.hpp>
Public Member Functions | |
| Resource & | get () const |
| Access the exclusively leased provider resource. | |
| operator bool () const noexcept | |
| Return whether this object currently owns a pool slot. | |
| ResourceLease & | operator= (ResourceLease &&other) noexcept |
| ResourceLease & | operator= (ResourceLease const &)=delete |
| void | release () noexcept |
| Return the resource to its pool before this object's destruction. | |
| ResourceLease () noexcept=default | |
| ResourceLease (ResourceLease &&other) noexcept | |
| ResourceLease (ResourceLease const &)=delete | |
| ~ResourceLease () | |
Friends | |
| class | ResourcePool< Resource > |
Move-only exclusive lease of one provider-resource pool slot.
Destroying or explicitly releasing the lease returns the resource to the oldest queued waiter, or to the pool's idle set.
|
defaultnoexcept |
|
delete |
|
inlinenoexcept |
|
inline |
| Resource & uni20::cuda::ResourceLease< Resource >::get | ( | ) | const |
Access the exclusively leased provider resource.
|
inlineexplicitnoexcept |
Return whether this object currently owns a pool slot.
|
inlinenoexcept |
|
delete |
|
noexcept |
Return the resource to its pool before this object's destruction.
|
friend |