#1176 InterlockIncrement prototype error in <windows.h>

Eric Blake

Per Microsoft [1], the various Interlocked* API intentionally operate on 'LONG volatile *' and not 'LPLONG', since they are designed for atomic access that must not be optimized by the compiler.

[1] http://msdn.microsoft.com/en-us/library/ms683614\(VS.85).aspx

However, at least with version 3.11 of w32api shipped with cygwin, the header is lacking the volatile. This leads to compilation warnings:



  • brandon sneed

    brandon sneed - 2008-06-25

    Logged In: YES
    Originator: NO

    This is now fixed in CVS. It would be helpful if you could verify before I close this bug.

    Thanks for letting us know about this error!!

  • brandon sneed

    brandon sneed - 2008-06-25
    • assigned_to: nobody --> nivenh
    • status: open --> open-fixed
  • Chris Sutcliffe

    Chris Sutcliffe - 2009-11-21
    • status: open-fixed --> pending-fixed
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending-fixed --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks