Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Xuebin_Y_Intel
Employee
59 Views

synchronization primitive usage under windows

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
59 Views

If you are using C++ - it is better to use tbb:atomic<> . It is officially supported on multiple platforms.

Reply