AioStatusInterface Class Reference

#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")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( AioStatusInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.aiostatus"   
)
private

◆  Alloc()

static MAXON_METHOD AioStatusInterface * Alloc ( MAXON_SOURCE_LOCATION_DECLARATION   )
static

◆  Wait()

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();.
返回
True if all operations succeeded, false on timeout, or the aggregated error(s) if one or more operations failed.

◆  AddDependency()

MAXON_METHOD ConditionVariableDependency AddDependency ( )

Adds a new dependency Wait() has to wait for.

◆  PushError()

MAXON_METHOD Result <void> PushError ( const Error &  error )

Adds an error to the aggregated result of Wait() .