31 #ifndef GENAPI_SYNCH_H 32 #define GENAPI_SYNCH_H 40 #elif defined (__GNUC__) && (defined (__linux__) || defined (__APPLE__)) 44 #elif defined(VXWORKS) 49 # error No/unknown platform thread support 91 CRITICAL_SECTION m_csObject;
93 #elif defined (__GNUC__) && (defined (__linux__) || defined (__APPLE__)) 94 pthread_mutex_t m_mtxObject;
96 #elif defined(VXWORKS) 99 # error No/unknown platform thread support 112 # if defined (_WIN32) 120 # elif defined (__GNUC__) && (defined (__linux__) || defined (__APPLE__) || defined(VXWORKS)) 123 # error No/unknown platform support 168 template<
class Object>
200 return Lock( *
this );
206 #endif // GENAPI_SYNCH_H Lock(const LockableObject< Object > &obj)
virtual void operator=(bool Value)
Set node value.
Lock GetLock() const
Get a new lock.
void Lock()
enters the critical section (may block)
const LockableObject< Object > & m_Object
Reference to outer object.
void Unlock()
leaves the critical section
declspec's to be used for GenApi Windows dll
This class is for testing purposes only.
Part of the generic device API.
Instance-Lock for an object.