Newbie initial comments on D language - scope
Sean Kelly
sean at f4.ca
Sun Feb 3 09:10:29 PST 2008
Sergey Gromov wrote:
> Sean Kelly Wrote:
>
>> A locked operation on x86 takes something like 80ns, which is far from
>> cheap. Though I think a cleverly implemented algorithm may be able to
>> avoid the use of 'lock' altogether (Boost's does, IIRC).
>
> Boost uses InterlocedIncrement() etc. under Windows and
> lock inc dword ptr [esi] and such otherwise. That's what Walter's
> talking about.
Ah, for some reason I thought they used a sort of spinlock.
Sean
More information about the Digitalmars-d
mailing list