|
Event-Driven Programming in C++ 1.0
A case study on event-driven programming in C++
|
Declaration of the EventQueue class. More...
#include <queue>#include <functional>#include <mutex>Go to the source code of this file.
Classes | |
| class | event_queue::EventQueue |
| A thread-safe event queue. More... | |
Namespaces | |
| namespace | event_queue |
| Contains the implementation of a thread-safe event queue. | |
Declaration of the EventQueue class.
This file declares the EventQueue class, which provides a thread-safe mechanism for queuing and processing events. An event is represented as a callable object (using std::function<void()>), allowing the decoupling of event production from event handling. This is useful in event-driven architectures, game loops, or any asynchronous application.