#include <network_ioservice.h>
This class is used to wait on the status of one or more asynchronous I/O operations.
公共成员函数 |
|
MAXON_METHOD Result < Bool > | Wait (const TimeValue &timeout= TIMEVALUE_INFINITE , WAITMODE mode= WAITMODE::DEFAULT ) |
MAXON_METHOD ConditionVariableDependency | AddDependency () |
MAXON_METHOD Result < void > | PushError (const Error &error) |
静态公共成员函数 |
|
static MAXON_METHOD AioStatusInterface * | Alloc ( MAXON_SOURCE_LOCATION_DECLARATION ) |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( AioStatusInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.aiostatus") |
|
private |
|
static |
MAXON_METHOD Result < Bool > Wait | ( | const TimeValue & |
timeout
=
TIMEVALUE_INFINITE
,
|
WAITMODE |
mode
=
WAITMODE::DEFAULT
|
||
) |
Waits until all of the depending operations are completed, or until an optional timeout is reached. After wait returns, the AioStatus can be re-used.
[in] | timeout | See ConditionVariable::Wait();. |
[in] | mode | See ConditionVariable::Wait();. |
MAXON_METHOD ConditionVariableDependency AddDependency | ( | ) |
Adds a new dependency Wait() has to wait for.
MAXON_METHOD Result <void> PushError | ( | const Error & | error | ) |
Adds an error to the aggregated result of Wait() .