CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    1,456

    InterlockedExchange64

    just a confirmation, to see if I didn' t miss something obvious;

    InterlockedExchange64 performs atomically with respect to other InterlockedExchange64 calls also on 32 bit systems, doesn't it ?

    I ask, because the msdn doc says "To operate on a 32-bit variable, use the InterlockedExchange function." that may be interpreted negatively ...

  2. #2
    Join Date
    Nov 2003
    Posts
    1,902

    Re: InterlockedExchange64

    InterlockedExchange64 is atomic on all architectures.

    Use InterlockedExchange to exchange a 32bit variable.
    Use InterlockedExchange64 to exchange a 64bit variable.

    gg

  3. #3
    Join Date
    Oct 2008
    Posts
    1,456

    Re: InterlockedExchange64

    thank you !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured