Similar to class Owner, but calls method TryAcquire instead of Acquire. The result is retrievable with method IsOwning().
TOwnable | The type to own. Requirements are to have methods TryAcquire and Release available. |
#include <owner.hpp>
Public Method Index: | |
OwnerTry (TOwnable &ownable, const CallerInfo &ci) | |
~OwnerTry () | |
Destructor. Invokes Release() on member owned. | |
bool | IsOwning () const noexcept |
Protected Field Index: | |
CallerInfo | dbgCI |
Caller information. Available only with debug-builds. | |
bool | isOwning |
The result of the call to TryAcquire. | |
TOwnable & | owned |
The resource to acquire and release. | |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inlinenoexcept |