Some Issues With Synchronized
Steven Schveighoffer
schveiguy at yahoo.com
Mon Jan 9 06:57:56 PST 2012
On Mon, 09 Jan 2012 09:41:40 -0500, Sean Kelly <sean at invisibleduck.org>
wrote:
> Which goes back to my argument that we should ship both checked and
> unchecked (release and not) builds and the compiler should link the
> proper one.
Or you make it a release-mode check. I can't imagine this being an
inner-loop operation.
But my point was, it's already unsafe. We've not had horrible issues with
it in its current state. Is it worse to allow replacing the monitor? If
you take the right steps (i.e. do it first line of the ctor), it's not
going to result in a race condition.
-Steve
More information about the Digitalmars-d
mailing list