Project Malmo
0.37.0
|
Synchronized error code that can be waited on. More...
#include <ErrorCodeSync.h>
Public Member Functions | |
void | init_error_code () |
Initialize error code with boost::asio::error::would_block. | |
const boost::system::error_code | await_error_code () |
Wait for error code update other than boost::asio::error::would_block. | |
void | signal_error_code (const boost::system::error_code &ec) |
Update error code and signal any waiting threads. More... | |
Synchronized error code that can be waited on.
void malmo::ErrorCodeSync::signal_error_code | ( | const boost::system::error_code & | ec | ) |
Update error code and signal any waiting threads.
ec | The error code to record before signaling any waiting threads. |