Mixe for Privacy and Anonymity in the Internet
|
#include <readerwriterqueue.h>
Public Member Functions | |
BlockingReaderWriterQueue (size_t maxSize=15) AE_NO_TSAN | |
BlockingReaderWriterQueue (BlockingReaderWriterQueue &&other) AE_NO_TSAN | |
BlockingReaderWriterQueue & | operator= (BlockingReaderWriterQueue &&other) AE_NO_TSAN |
AE_FORCEINLINE bool | enqueue (UINT8 *const &element) AE_NO_TSAN |
bool | try_dequeue (UINT8 *&result) AE_NO_TSAN |
void | wait_dequeue (UINT8 *&result) AE_NO_TSAN |
bool | wait_dequeue_timed (UINT8 *&result, std::int64_t timeout_usecs) AE_NO_TSAN |
AE_FORCEINLINE UINT8 * | peek () AE_NO_TSAN |
AE_FORCEINLINE bool | pop () AE_NO_TSAN |
AE_FORCEINLINE size_t | size_approx () const AE_NO_TSAN |
Private Attributes | |
ReaderWriterQueue | inner |
std::unique_ptr< spsc_sema::LightweightSemaphore > | sema |
Definition at line 558 of file readerwriterqueue.h.
|
inlineexplicit |
Definition at line 562 of file readerwriterqueue.h.
|
inline |
|
inline |
Definition at line 580 of file readerwriterqueue.h.
References ReaderWriterQueue::enqueue(), inner, and sema.
|
inline |
|
inline |
Definition at line 657 of file readerwriterqueue.h.
References inner, and ReaderWriterQueue::peek().
|
inline |
Definition at line 665 of file readerwriterqueue.h.
References AE_UNUSED, inner, ReaderWriterQueue::pop(), and sema.
|
inline |
Definition at line 678 of file readerwriterqueue.h.
References sema.
|
inline |
Definition at line 594 of file readerwriterqueue.h.
References AE_UNUSED, inner, sema, and ReaderWriterQueue::try_dequeue().
|
inline |
Definition at line 608 of file readerwriterqueue.h.
References AE_UNUSED, inner, sema, and ReaderWriterQueue::try_dequeue().
|
inline |
Definition at line 624 of file readerwriterqueue.h.
References AE_UNUSED, inner, sema, and ReaderWriterQueue::try_dequeue().
|
private |
Definition at line 686 of file readerwriterqueue.h.
Referenced by enqueue(), operator=(), peek(), pop(), try_dequeue(), wait_dequeue(), and wait_dequeue_timed().
|
private |
Definition at line 687 of file readerwriterqueue.h.
Referenced by enqueue(), operator=(), pop(), size_approx(), try_dequeue(), wait_dequeue(), and wait_dequeue_timed().