|
|
PixelBullet
0.0.1
A C++ game engine
|
A simple thread-safe command queue. More...
#include <CommandQueue.hpp>
Public Member Functions | |
| void | Push (const std::function< void()> &command) |
| Push a new command into the queue. | |
| bool | Pop (std::function< void()> &command, std::chrono::milliseconds waitDuration) |
| void | NotifyAll () |
| Notifies all waiting threads. | |
A simple thread-safe command queue.
|
inline |
Notifies all waiting threads.
|
inline |
Attempts to pop a command, waiting up to waitDuration. Returns true if a command was popped.
|
inline |
Push a new command into the queue.