Agora
1.2.0
Agora project
|
Go to the documentation of this file.
6 #ifndef CONCURRENT_QUEUE_WRAPPER_H_
7 #define CONCURRENT_QUEUE_WRAPPER_H_
21 if (!mc_queue->
try_enqueue(*producer_token, event)) {
24 "Message enqueue failed");
47 "Message bulk enqueue failed\n");
51 #endif // CONCURRENT_QUEUE_WRAPPER_H_
Definition: concurrentqueue.h:630
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
static void TryEnqueueFallback(moodycamel::ConcurrentQueue< EventData > *mc_queue, moodycamel::ProducerToken *producer_token, const EventData &event)
Definition: concurrent_queue_wrapper.h:18
Definition: message.h:142
Self defined functions for message storage and passing.
bool enqueue(T const &item)
Definition: concurrentqueue.h:974
bool enqueue_bulk(It itemFirst, size_t count)
Definition: concurrentqueue.h:1016
bool try_enqueue_bulk(It itemFirst, size_t count)
Definition: concurrentqueue.h:1080
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
static void TryEnqueueBulkFallback(moodycamel::ConcurrentQueue< EventData > *mc_queue, moodycamel::ProducerToken *producer_token, const EventData *event_list, size_t num_events)
Definition: concurrent_queue_wrapper.h:40
bool try_enqueue(T const &item)
Definition: concurrentqueue.h:1039