![]() |
XTL
0.1
eXtended Template Library
|
A lock-free LIFO stack multiple threads can push and pop items concurrently. More...
Inheritance diagram for xtd::concurrent::stack< _ValueT, _WaitPolicyT >:
Collaboration diagram for xtd::concurrent::stack< _ValueT, _WaitPolicyT >:Public Types | |
| using | value_type = _ValueT |
| using | wait_policy_type = _WaitPolicyT |
Public Member Functions | |
| stack (wait_policy_type oWait=wait_policy_type()) | |
| stack (stack &&src) | |
| stack (const stack &)=delete | |
| stack & | operator= (stack &&src) |
| stack & | operator= (const stack &)=delete |
| value_type | pop () |
| void | push (const value_type &value) |
| bool | try_pop (value_type &oRet) |
A lock-free LIFO stack multiple threads can push and pop items concurrently.
| _ValueT | type of value contained in the stack. Must be copy constructible. |