template<typename TOwnable>
class alib::lang::OwnerTryShared< TOwnable >
Similar to class Owner, but calls method TryAcquireShared instead of Acquire and ReleaseShared instead of Release. The result is retrievable with method IsOwning().
- See also
- Chapter 3.3.1 Class Owner And Its Siblings of the Programmer's Manual of module ALib Threads
- Template Parameters
-
TOwnable | The type to own. Requirements are to have methods TryAcquireShared and ReleaseShared available. |
Definition at line 330 of file owner.hpp.