|
Event-Driven Programming in C++ 1.0
A case study on event-driven programming in C++
|
Implementation of the EventQueue class. More...
Namespaces | |
| namespace | event_queue |
| Contains the implementation of a thread-safe event queue. | |
Implementation of the EventQueue class.
This file implements the methods declared in event_queue.hpp. The EventQueue class provides a thread-safe FIFO queue for storing and processing events, where each event is represented as a callable object (std::function<void()>). The implementation ensures that events can be pushed and processed safely across multiple threads.