CHAI SDK  Version 1.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CPNS::IAsync Class Referenceabstract

Async call handler. More...

Public Member Functions

virtual void * GetUserPointer ()=0
 Get the user pointer related to the async operation. More...
 

Detailed Description

Async call handler.

A pointer to IAsync is returned by asynchronous call (any method having a _Async suffix). This pointer is useful for context identification on async call return notification, but also to cancel the async call. An Async operation can be canceled using the ICHAI::CancelAsync() method.

Warning
the pointer to IAsync becomes invalid as soon the return notification call is done

Member Function Documentation

virtual void* CPNS::IAsync::GetUserPointer ( )
pure virtual

Get the user pointer related to the async operation.

Returns
the user pointer value.