Very Simple Cross-Platform Library
|
#include <Waiter.h>
Public Member Functions | |
bool | wait (int timeout=-1) |
Public Member Functions inherited from hu::varadiistvan::scpl::io::Failable | |
Failable () | |
bool | failed () const |
errorCode_t | getErrorCode () const |
void | repair () |
Additional Inherited Members | |
Protected Member Functions inherited from hu::varadiistvan::scpl::io::Failable | |
void | setErrorCode (errorCode_t ec) |
Class that can be used to register waitable objects and then wait for them. The objects are registered when they created and a Waiter instance is passed to them.
bool hu::varadiistvan::scpl::io::Waiter::wait | ( | int | timeout = -1 | ) |
Wait for any if the waitables to become ready or until a timeout expires.
If any of the waitables are ready, the function returns immediately.