- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using C++ - it is better to use tbb:atomic<> . It is officially supported on multiple platforms.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page