On Nov 18, 2012, at 12:44 PM, Jonathan M Davis <jmdavisp...@gmx.com> wrote:
> 
> So, I concur in that I don't see how the semantics of shared could possibly 
> not be appropriate for mutexes. I started this thread primarily because I was 
> shocked that Mutex, Condition, etc. weren't marked with shared already, and I 
> didn't see how they could even be used without it (and apparently, the answer 
> to that is that almost everyone cops out and uses __gshared).

I tried this once and it cascaded to requiring modifications of various 
definitions on core.sys.posix to add a "shared" qualifier, and since I wasn't 
ready to do that I rolled back the changes.  I guess the alternative would be 
to have a shared equivalent for every operation that basically just casts away 
shared and then calls the non-shared function, but that's such a terrible 
design I've been resisting it.

Reply via email to