or better, use the builtin gcc atomic ops
http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Atomic-Builtins.html

2010/11/30 Deniz <daimler3@googlemail.com>
you could use SDL_atomic.h of the SDL library or any other 3rd party library

2010/11/24 大学生 <chinoistzc@gmail.com>
How to use atomic operation in MinGW?
 
 
 
Any help will be highly apprecaited!
                                                        Tian Zhichao
                                                       Chengdu, Sichuan ,China

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe