~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-10-28 17:12:01 UTC
  • mfrom: (1887.1.3 merge)
  • Revision ID: brian@tangent.org-20101028171201-baj6l1bnntn1s4ad
Merge in POTFILES changes.

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, 2009, 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
35
35
 
36
36
#include "univ.i"
37
37
 
38
 
#include "db0err.h"
39
 
 
40
38
#ifndef UNIV_HOTBACKUP
41
39
# include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
42
40
#endif /* UNIV_HOTBACKUP */
71
69
#elif defined(HAVE_ATOMIC_BUILTINS)
72
70
#  define UT_RELAX_CPU() do { \
73
71
     volatile lint      volatile_var; \
74
 
     if (os_compare_and_swap_lint(&volatile_var, 0, 1)) ((void)0); \
 
72
     os_compare_and_swap_lint(&volatile_var, 0, 1); \
75
73
   } while (0)
76
74
#else
77
75
#  define UT_RELAX_CPU() ((void)0) /* avoid warning for an empty statement */
397
395
# define ut_snprintf    snprintf
398
396
#endif /* __WIN__ */
399
397
 
400
 
/*************************************************************//**
401
 
Convert an error number to a human readable text message. The
402
 
returned string is static and should not be freed or modified.
403
 
@return string, describing the error */
404
 
UNIV_INTERN
405
 
const char*
406
 
ut_strerr(
407
 
/*======*/
408
 
        enum db_err     num);   /*!< in: error number */
409
 
 
410
398
#ifndef UNIV_NONINL
411
399
#include "ut0ut.ic"
412
400
#endif