Newbie initial comments on D language - scope

Sergey Gromov snake.scaly at gmail.com
Sun Feb 3 04:26:38 PST 2008


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.



More information about the Digitalmars-d mailing list