Mutexes and locking

Sean Kelly sean at invisibleduck.org
Tue Mar 4 12:53:25 PST 2014


For what it's worth, you can also do:

auto m = new Mutex;
sycnchronized (m) {
      // do stuff
}

The synchronized block will call lock on enter and unlock on
exit, even as a result of a throw.


More information about the Digitalmars-d-learn mailing list