From OpenSCADAWiki
Revision as of 16:59, 7 April 2020 by FuzzyBot (Talk | contribs) (Importing a new version from external source)
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.