neuray API Programmer's Manual

mi::neuraylib::ITimer Class Reference

[Configuration Interfaces]

Description

This is an abstract interface class for a timer. Its aim is to be derived from by the application writer. The concrete implementation can then be registered with the neuray API and will after that be used by .

The timer class must be serializable since a timer will potentially be sent over the cluster to different nodes. If the timer class is only ever used locally, then the serialization function can be left empty.

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 timer_callback() =0
This function is called when the timer elapses. More...

Member Functions

virtual void mi::​neuraylib::​ITimer::timer_callback() [pure virtual]

This function is called when the timer elapses. Note that the function will be called from a separate thread, not from the thread that was used to start the timer.