neuray API Programmer's Manual

mi::neuraylib::IReady_callback Class Reference

[Rendering and Picking]

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 .

Public Member Functions

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

Member Functions

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.