From OpenSCADAWiki
Object of automatic unlock POSIX mutex (MtxAlloc)
Public methods:
- MtxAlloc( ResMtx &iM, bool lock = false ); — Initialization of automatic unlock mutex for early allocated identifier iM. With the lock set at a creation.
- int lock( ); — The resource lock. Return zero at the success.
- int unlock( ); — The resource unlock. Return zero at the success.
- int tryLock( ); — The resource try lock, without wait for free. Return zero at the success.