Le 30/05/2012 23:45, Andrei Alexandrescu a écrit :
On 5/30/12 1:31 PM, Steven Schveighoffer wrote:
On Wed, 30 May 2012 15:48:47 -0400, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:
synchronized (object) {
writeln("about to unlock the object");
XXX
writeln("unlocked the object");
}

Replace "XXX" with a construct that unlocks the object.

This is not what we are talking about.

Oh yes it is. "Expose the mutex" means "make the two mutex primitive
operations lock() and unlock() freely usable against the mutex object".


The more I think of it, the more I think it should go throw a @synchrnizable property or something.

Reply via email to