druntime investigation troubles

Steven Schveighoffer schveiguy at yahoo.com
Wed May 23 04:31:07 PDT 2012


On Wed, 23 May 2012 02:21:14 -0400, Jacob Carlborg <doob at me.com> wrote:

> On 2012-05-22 23:01, Steven Schveighoffer wrote:
>
>> It looks like code that is not called on Windows. Which doesn't make
>> sense. It would seem that you must initialize a critical section in
>> order to use it.
>>
>> I can't find any reference to STI_monitor in dmd, dmc, or druntime
>> source code, except those calls that are done for Posix only. This isn't
>> some closed-source mystery, I think it is just unused code.
>>
>> Sean, does this make sense? Are we using uninitialized critical  
>> sections?
>>
>> -Steve
>
> I found a call now, it's in "_d_criticalenter", both in critical.c and  
> critical_.d.
>

OK, so does this mean monitor is only used on Posix, and critical is used  
only on windows?  This seems a little weird.  Especially since we are  
still compiling monitor.c.

-Steve


More information about the Digitalmars-d-learn mailing list