PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
PixelBullet::CommandQueue Class Reference

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 ()
 

Detailed Description

A simple thread-safe command queue.

Member Function Documentation

◆ Pop()

bool PixelBullet::CommandQueue::Pop ( std::function< void()> & command)
inline

Blocks until a command is available or the queue is closed.

◆ Push()

bool PixelBullet::CommandQueue::Push ( const std::function< void()> & command)
inline

Push a new command into the queue.


The documentation for this class was generated from the following file: