Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7678 Discussions

synchronization primitive usage under windows

Xuebin_Y_Intel
Employee
120 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
120 Views
If you are using C++ - it is better to use tbb:atomic<> . It is officially supported on multiple platforms.

Reply