Debian Codegraph @

doc/man/man3/ivm/sensors/SoIdleSensor.ivm

raw
1 NAME SoIdleSensor SoIdleSens "" {
2 sensor for one-time only callbacks when the application is idle
3 }
4
5 INCLUDE sensors/SoIdleSensor.h
6
7 DESC {
8 An idle sensor is almost exactly like an \cSoOneShotSensor\., except
9 that it is only triggered when there are no timer queue sensors
10 waiting to be triggered and there are no events waiting to be
11 processed; that is, idle sensors will not be triggered if the delay
12 queue is processed because the delay queue timeout expires. If the
13 delay queue timeout is disabled (see
14 \m\+SoDB::setDelaySensorTimeout()\.\-SoDBSetDelaySensorTimeout()\.\..),
15 idle and one-shot sensors are exactly the same.
16 \p
17 Note that idle sensors do not reschedule themselves. Inventor 1 idle
18 sensors were always scheduled; call \mschedule()\. in the callback
19 function to duplicate that behavior.
20 \p
21 See the \mSoOneShotSensor\. manual page for more information.
22 }
23
24 METHOD "" SoIdleSensor() {}
25 METHOD CreateCB SoIdleSensor(SoSensorCB *func, void *data) {
26 Creation methods. The second method takes the callback function and
27 data to be called when the sensor is triggered.
28 }
29 METHOD "" ~SoIdleSensor() {
30 Destroys the sensor, freeing up any memory associated with it after
31 unscheduling it.
32 }
33
34 ALSO { SoOneShotSensor, SoDelayQueueSensor }