Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7875 Discussions

synchronization primitive usage under windows

Xuebin_Y_Intel
Employee
168 Views

I want to use those sync primitive such as __sync_fetch_and_add/sub/or underWindows. But it seems that ICC does not support it on Windows. Then anyway to word around? Anyone can do me a favor to provide me one sample code? Thanks a lot!

0 Kudos
1 Reply
Om_S_Intel
Employee
168 Views
If you are using C++ - it is better to use tbb:atomic<> . It is officially supported on multiple platforms.

0 Kudos
Reply