~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/ut0ut.h

merged with up to date trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
4
 
Copyright (c) 2009, Sun Microsystems, Inc.
 
3
Copyright (C) 1994, 2010, Innobase Oy. All Rights Reserved.
 
4
Copyright (C) 2009 Sun Microsystems, Inc.
5
5
 
6
6
Portions of this file contain modifications contributed and copyrighted by
7
7
Sun Microsystems, Inc. Those modifications are gratefully acknowledged and
71
71
#elif defined(HAVE_ATOMIC_BUILTINS)
72
72
#  define UT_RELAX_CPU() do { \
73
73
     volatile lint      volatile_var; \
74
 
     os_compare_and_swap_lint(&volatile_var, 0, 1); \
 
74
     if (os_compare_and_swap_lint(&volatile_var, 0, 1)) ((void)0); \
75
75
   } while (0)
76
76
#else
77
77
#  define UT_RELAX_CPU() ((void)0) /* avoid warning for an empty statement */