From OpenSCADAWiki
Resources allocation object, by mutex (ResMtx)
Public methods:
- ResMtx( bool isRecurs = true ); — Initialization of a mutex object with recursion isRecurs.
- void lock( ); — Mutex lock. Return zero at the success.
- void unlock( ); — Mutex unlock. Return zero at the success.
- int tryLock( ); — Mutex try lock, without wait for free. Return zero at success.
- pthread_mutex_t &mtx( ); — Direct link to the mutex structure.