This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
atomic operations
- From: "Vardhan, Sundara (GE Infra, Energy)" <sundara dot vardhan at ge dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Sat, 26 Apr 2008 09:13:11 -0400
- Subject: atomic operations
Hi All
Are there any atomic operations available. I am looking for something equivalent to atomic_swap_uchar in Solaris. I tried to use __sync_val_compare_and_swap() but get errors when the program tries to load it in runtime. Perhaps I need to link or download some libraries. Any idea which?
Thanks in advance
Vardhan