Mutexes and locking

Kagamin spam at here.lot
Thu Mar 6 10:33:43 PST 2014


We use non-recursive locks too. The pattern is:
---
bool wasMyLock=obj.isMyLock();
if(!wasMyLock)obj.lock();
...code...
if(!wasMyLock)obj.unlock();
---


More information about the Digitalmars-d-learn mailing list