25 #ifndef __I6ENGINE_UTILS_EXCEPTIONS_EXCEPTIONQUEUE_H__
26 #define __I6ENGINE_UTILS_EXCEPTIONS_EXCEPTIONQUEUE_H__
38 namespace exceptions {
55 void enqueue(
const loginfo & data);
72 void addCallback(
const std::function<
void(
void)> & callback);
75 std::queue<loginfo> _queue;
76 mutable std::mutex _mutex;
77 std::vector<std::function<void(void)>> _callbacks;
Internal data structure for exceptions.
Derive from this templated class to make a class a singleton. Refer to the Singleton Design Pattern i...
Implements a queue that supports multiple producers but only one consumer.