![]() |
XTL
0.1
eXtended Template Library
|
A single owner spinning lock. More...
Collaboration diagram for xtd::concurrent::spin_lock_base< _WaitPolicyT >:Public Types | |
| using | scope_locker = xtd::concurrent::scope_locker< spin_lock_base< _WaitPolicyT >> |
| using | wait_policy_type = _WaitPolicyT |
Public Member Functions | |
| spin_lock_base (wait_policy_type oWait=wait_policy_type()) | |
| spin_lock_base (const spin_lock_base &)=delete | |
| spin_lock_base (spin_lock_base &&)=delete | |
| void | lock () |
| Acquires the lock. | |
| bool | try_lock () |
| Attempts to acquire the lock. More... | |
| void | unlock () |
| Releases the lock. | |
Static Public Attributes | |
| static constexpr uint32_t | LockedValue = 0x80000000 |
A single owner spinning lock.
Definition at line 15 of file spin_lock.hpp.
|
inline |
Attempts to acquire the lock.
Definition at line 43 of file spin_lock.hpp.