source: CLRX/CLRadeonExtender/trunk/ThreadOnce.cpp @ 4652

Last change on this file since 4652 was 3370, checked in by matszpk, 21 months ago

CLRadeonExtender: Add checking C++11 Thread call_once. Add detection OpenCL in MinGW64 environment.

File size: 134 bytes
Line 
1#include <mutex>
2
3static std::once_flag onceFlag;
4
5static void initCode()
6{ }
7
8int main()
9{
10    std::call_once(onceFlag, initCode);
11}
Note: See TracBrowser for help on using the repository browser.