~drizzle-developers/ubuntu/karmic/drizzle/ppa

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2010-11-24 18:44:57 UTC
  • mfrom: (1308.1.31 trunk)
  • Revision ID: mordred@inaugust.com-20101124184457-qd6jvoe2wgnvl3yq
Tags: 2010.11.04-0ubuntu1~karmic1
* New upstream release.
* Turn off -Werror for packaging builds. (Closes: #602662)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1995, 2010, Innobase Oy. All Rights Reserved.
4
4
Copyright (c) 2008, Google Inc.
5
5
 
6
6
Portions of this file contain modifications contributed and copyrighted by
206
206
ibool
207
207
mutex_own(
208
208
/*======*/
209
 
        const mutex_t*  mutex); /*!< in: mutex */
 
209
        const mutex_t*  mutex)  /*!< in: mutex */
 
210
        __attribute__((warn_unused_result));
210
211
#endif /* UNIV_DEBUG */
211
212
#ifdef UNIV_SYNC_DEBUG
212
213
/******************************************************************//**
238
239
sync_thread_levels_empty(void);
239
240
/*==========================*/
240
241
/******************************************************************//**
241
 
Checks that the level array for the current thread is empty.
242
 
@return TRUE if empty except the exceptions specified below */
243
 
UNIV_INTERN
244
 
ibool
245
 
sync_thread_levels_empty_gen(
246
 
/*=========================*/
 
242
Checks if the level array for the current thread contains a
 
243
mutex or rw-latch at the specified level.
 
244
@return a matching latch, or NULL if not found */
 
245
UNIV_INTERN
 
246
void*
 
247
sync_thread_levels_contains(
 
248
/*========================*/
 
249
        ulint   level);                 /*!< in: latching order level
 
250
                                        (SYNC_DICT, ...)*/
 
251
/******************************************************************//**
 
252
Checks if the level array for the current thread is empty.
 
253
@return a latch, or NULL if empty except the exceptions specified below */
 
254
UNIV_INTERN
 
255
void*
 
256
sync_thread_levels_nonempty_gen(
 
257
/*============================*/
247
258
        ibool   dict_mutex_allowed);    /*!< in: TRUE if dictionary mutex is
248
259
                                        allowed to be owned by the thread,
249
260
                                        also purge_is_running mutex is
250
261
                                        allowed */
 
262
#define sync_thread_levels_empty_gen(d) (!sync_thread_levels_nonempty_gen(d))
251
263
/******************************************************************//**
252
264
Gets the debug information for a reserved mutex. */
253
265
UNIV_INTERN