17 |
along with this program; if not, write to the Free Software |
along with this program; if not, write to the Free Software |
18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
|
|
20 |
$Id: atomic.h,v 1.3 2006-06-28 19:32:21 schoenebeck Exp $ |
$Id: atomic.h,v 1.4 2008-01-13 16:36:13 nagata Exp $ |
21 |
*/ |
*/ |
22 |
|
|
23 |
//TODO: should we put this into namespace? it might clash with system installed atomic.h, because we need to install atomic.h for the LS API |
//TODO: should we put this into namespace? it might clash with system installed atomic.h, because we need to install atomic.h for the LS API |
1240 |
|
|
1241 |
typedef unsigned long atomic_t; |
typedef unsigned long atomic_t; |
1242 |
|
|
1243 |
|
/* Added by Toshi Nagata, 20071224 */ |
1244 |
|
#define ATOMIC_INIT(i) { (i) } |
1245 |
|
|
1246 |
#if defined(__sgi) |
#if defined(__sgi) |
1247 |
#undef atomic_set |
#undef atomic_set |
1248 |
#endif |
#endif |