Similar to class Owner, but calls method TryAcquireTimed instead of Acquire. The result is retrievable with method IsOwning().
| TOwnable | The type to own. Requirements are to have methods TryAcquireTimed and Release available. |
Public Method Index: | |
| template<typename TTimeValue> | |
| OwnerTimed (TOwnable &ownable, const TTimeValue &time, const CallerInfo &ci) | |
| ~OwnerTimed () | |
| 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 |
Constructor. Invokes TryAcquire() on member owned.
| TTimeValue | Type of time parameter accepted with construction and passed to method TOwnable::TryAcquireTimed. Usually this is type Ticks or Ticks::Duration. |
| ownable | The ownable to acquire. |
| time | The duration to wait for, or point in time to wait until. |
| ci | Caller information. |
|
inline |
|
inlinenoexcept |