import core.sync.mutex; import std.stdio;
void main()
{
Mutex m = new Mutex;
m.lock();
writefln("%s", m.tryLock());
writefln("%s", m.tryLock());
return;
}
produces:
true
true
Thanks!
Alex
import core.sync.mutex; import std.stdio;
void main()
{
Mutex m = new Mutex;
m.lock();
writefln("%s", m.tryLock());
writefln("%s", m.tryLock());
return;
}
produces:
true
true
Thanks!
Alex