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 GetLock() const
Get a new lock.
Lock(const LockableObject< Object > &obj)
void Lock()
enters the critical section (may block)
virtual IBoolean & operator=(bool Value)
Set node value.
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. It should not be used for client code because it exists only...
Lexical analyzer for CIntSwissKnife.
Instance-Lock for an object.