|
Sleeping Wombat Common Library
0.50.0
swCommonLibrary
|
Concurrent queue. More...
#include <QueueMT.h>
Public Member Functions | |
| void | Push (const ContentType &element) |
| void | Push (ContentType &&element) |
| bool | TryPop (ContentType &element) |
| void | Pop (ContentType &element) |
| Returns element in parameter. | |
| bool | IsEmpty () |
| Zwraca true, jeżeli kolejka jest pusta. Należy pamiętać, że po wywołaniu tej funkcji kolejka może zostać opróżniona z innego wątku, więc nie należy traktować wyniku jak wyroczni. | |
Private Attributes | |
| std::queue< ContentType > | m_queue |
| std::mutex | m_accesslock |
| std::condition_variable | m_condition |
Concurrent queue.
1.8.9.1