NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IReady_callback Class Referenceabstract

Abstract interface to report completion of an asynchronous operation back to the caller. More...

Inheritance diagram for mi::neuraylib::IReady_callback:
Inheritance graph
[legend]

Public Member Functions

virtual void  ready (Sint32 result)=0
  The callback method that signals the completion of the asynchronous operation. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x5c4ecccf, 0x2dcc, 0x439b, 0x88, 0xf2, 0x4d, 0x14, 0xa5, 0xc8, 0xb6, 0x4b >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x5c4ecccf, 0x2dcc, 0x439b, 0x88, 0xf2, 0x4d, 0x14, 0xa5, 0xc8, 0xb6, 0x4b >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

Abstract interface to report completion of an asynchronous operation back to the caller.

Typically, an instance of this interface is passed to methods triggering asynchronous operations. After completion of the operation the ready() method of this instance is called to report completion of the asynchronous operation to the caller.

For example, an instance of this interface can be passed to mi::neuraylib::IRender_context::render_async().

Note
Instances of this interface should not be created on the stack, since this might lead to premature destruction of such instances while still being in use by the Iray library.

Member Function Documentation

virtual void mi::neuraylib::IReady_callback::ready ( Sint32  result)
pure virtual

The callback method that signals the completion of the asynchronous operation.

It can be called at any time from any thread.

Note
You must not call any of following methods from within the callback:
Parameters
result Result of the asynchronous operation. See the documentation of the asynchronous operation for the meaning of the value.