55#include <Inventor/SbBasic.h>
56#include <Inventor/threads/SbThreadSpinlock.h>
112 dwThreadId=GetCurrentThreadId();
125 dwThreadId=GetCurrentThreadId();
131#ifndef HIDDEN_FROM_DOC
138 inline void setFunction(
SoSensorCB *f,
void *userData);
151 dwThreadId=GetCurrentThreadId();
186 {
return m_schedule; }
202 inline void setScheduleFlag(
SbBool flag)
203 { m_schedule = flag; };
206 DWORD getThreadId() {
return dwThreadId;};
207 void setThreadId(DWORD
id) { dwThreadId=id;};
211 static void initClass();
214 virtual void trigger();
221 void setNextInQueue(
SoSensor *next) { nextInQueue = next; }
222 SoSensor * getNextInQueue()
const {
return nextInQueue; }
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable spinloc...
void lock()
Request exclusive access for this spinlock.
void unlock()
Release exclusive access.
Base class for all fields.
Base class for all multiple-valued fields.
Abstract base class for Open Inventor sensors.
SoSensor(SoSensorCB *f, void *d)
Constructor that takes standard callback function and data.
virtual void unschedule()=0
virtual void schedule()=0
void setFunction(SoSensorCB *f)
Sets the callback function that is called when the sensor is triggered.
virtual SbBool isScheduled() const
Returns TRUE if this sensor has been scheduled and is waiting in a sensor queue to be triggered.
void * getData() const
Returns the user-supplied pointer that will be passed to the callback function.
void setFunction(SoSensorCB *f, void *userData)
SoSensorCB * getFunction() const
Returns the callback that will be called when the sensor is triggered.
void setData(void *d)
Sets the callback data passed to the callback function.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.