|
|
PixelBullet
0.0.1
A C++ game engine
|
A simple thread-safe command queue. More...
#include <command_queue.hpp>
Public Member Functions | |
| bool | Push (const std::function< void()> &command) |
| Push a new command into the queue. | |
| bool | Pop (std::function< void()> &command) |
| Blocks until a command is available or the queue is closed. | |
| void | Close () |
A simple thread-safe command queue.
|
inline |
Blocks until a command is available or the queue is closed.
|
inline |
Push a new command into the queue.