Project Malmo  0.37.0
Public Member Functions | List of all members
malmo::ErrorCodeSync Class Reference

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...
 

Detailed Description

Synchronized error code that can be waited on.

Member Function Documentation

◆ signal_error_code()

void malmo::ErrorCodeSync::signal_error_code ( const boost::system::error_code &  ec)

Update error code and signal any waiting threads.

Parameters
ecThe error code to record before signaling any waiting threads.

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