Changeset 3362 in CLRX


Ignore:
Timestamp:
Sep 12, 2017, 9:10:01 PM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Force zero-initialization for OnceFlag? (for MinGW).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/utils/Utilities.h

    r3361 r3362  
    956956{ std::call_once(flag, f, args...); }
    957957#else
    958 typedef std::atomic<int> OnceFlag;
     958struct OnceFlag: std::atomic<int>
     959{   // force zero initialization
     960    OnceFlag(): std::atomic<int>(0)
     961    { }
     962};
    959963
    960964template<class Callable, class... Args>
Note: See TracChangeset for help on using the changeset viewer.