Some Issues With Synchronized

Sean Kelly sean at invisibleduck.org
Sat Jan 7 15:07:33 PST 2012


Right now, Mutex will assert if you assign it to an object with a monitor. Or it would with a non-release build. That's the only entirely safe thing to do. 

Sent from my iPhone

On Jan 7, 2012, at 9:27 AM, "Steven Schveighoffer" <schveiguy at yahoo.com> wrote:

> On Sat, 07 Jan 2012 11:08:51 -0500, Sean Kelly <sean at invisibleduck.org> wrote:
> 
>> There's still a race condition between unlocking the monitor and freeing the memory.
> 
> Wouldn't that result in a segfault or other error?  How is that worse than the current state of affairs?
> 
> -Steve


More information about the Digitalmars-d mailing list