• Andreas Klebinger's avatar
    WinIO: Small changes related to atomic request swaps. · b41f7c38
    Andreas Klebinger authored
    Move the atomix exchange over the Ptr type to an internal module.
    
    Fix a bug caused by us passing ptr-to-ptr instead of ptr to
    atomic exchange.
    
    Renamed interlockedExchange to exchangePtr.
    
    I've also added an cas primitive. It turned out we don't need it
    for WinIO but I'm leaving it in as it's useful for other things.
    b41f7c38
Code owners : Herbert Valerio Riedel
Internal.hs 3.76 KB