Event-Driven Programming in C++ 1.0
A case study on event-driven programming in C++
Loading...
Searching...
No Matches
event_queue.cpp File Reference

Implementation of the EventQueue class. More...

#include "event_queue.hpp"
#include <utility>

Namespaces

namespace  event_queue
 Contains the implementation of a thread-safe event queue.
 

Detailed Description

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.