~stewart/haildb/remove-univ-static

« back to all changes in this revision

Viewing changes to sync/sync0sync.c

  • Committer: Stewart Smith
  • Date: 2010-08-05 23:28:45 UTC
  • Revision ID: stewart@flamingspork.com-20100805232845-ihsae6mc5teon6n3
remove UNIV_STATIC. It's no longer in the innodb_plugin, replace just with 'static'

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
 
168
168
/** The number of iterations in the mutex_spin_wait() spin loop.
169
169
Intended for performance monitoring. */
170
 
UNIV_STATIC ib_int64_t  mutex_spin_round_count          = 0;
 
170
static ib_int64_t       mutex_spin_round_count          = 0;
171
171
/** The number of mutex_spin_wait() calls.  Intended for
172
172
performance monitoring. */
173
 
UNIV_STATIC ib_int64_t  mutex_spin_wait_count           = 0;
 
173
static ib_int64_t       mutex_spin_wait_count           = 0;
174
174
/** The number of OS waits in mutex_spin_wait().  Intended for
175
175
performance monitoring. */
176
 
UNIV_STATIC ib_int64_t  mutex_os_wait_count             = 0;
 
176
static ib_int64_t       mutex_os_wait_count             = 0;
177
177
/** The number of mutex_exit() calls. Intended for performance
178
178
monitoring. */
179
179
UNIV_INTERN ib_int64_t  mutex_exit_count                = 0;
197
197
UNIV_INTERN sync_thread_t*      sync_thread_level_arrays;
198
198
 
199
199
/** Mutex protecting sync_thread_level_arrays */
200
 
UNIV_STATIC mutex_t             sync_thread_mutex;
 
200
static mutex_t          sync_thread_mutex;
201
201
#endif /* UNIV_SYNC_DEBUG */
202
202
 
203
203
/** Global list of database mutexes (not OS mutexes) created. */
213
213
 
214
214
#ifdef UNIV_DEBUG
215
215
/* FIXME: How is this used in MySQL code ? */
216
 
UNIV_STATIC ibool       timed_mutexes;
 
216
static ibool    timed_mutexes;
217
217
#endif /* UNIV_DEBUG */
218
218
 
219
219
struct sync_thread_struct{
713
713
 
714
714
/******************************************************************//**
715
715
Prints debug info of currently reserved mutexes. */
716
 
UNIV_STATIC
 
716
static
717
717
void
718
718
mutex_list_print_info(
719
719
/*==================*/
802
802
/******************************************************************//**
803
803
Gets the value in the nth slot in the thread level arrays.
804
804
@return pointer to thread slot */
805
 
UNIV_STATIC
 
805
static
806
806
sync_thread_t*
807
807
sync_thread_level_arrays_get_nth(
808
808
/*=============================*/
816
816
/******************************************************************//**
817
817
Looks for the thread slot for the calling thread.
818
818
@return pointer to thread slot, NULL if not found */
819
 
UNIV_STATIC
 
819
static
820
820
sync_thread_t*
821
821
sync_thread_level_arrays_find_slot(void)
822
822
/*====================================*/
844
844
/******************************************************************//**
845
845
Looks for an unused thread slot.
846
846
@return pointer to thread slot */
847
 
UNIV_STATIC
 
847
static
848
848
sync_thread_t*
849
849
sync_thread_level_arrays_find_free(void)
850
850
/*====================================*/
869
869
/******************************************************************//**
870
870
Gets the value in the nth slot in the thread level array.
871
871
@return pointer to level slot */
872
 
UNIV_STATIC
 
872
static
873
873
sync_level_t*
874
874
sync_thread_levels_get_nth(
875
875
/*=======================*/
886
886
Checks if all the level values stored in the level array are greater than
887
887
the given limit.
888
888
@return TRUE if all greater */
889
 
UNIV_STATIC
 
889
static
890
890
ibool
891
891
sync_thread_levels_g(
892
892
/*=================*/
963
963
/******************************************************************//**
964
964
Checks if the level value is stored in the level array.
965
965
@return TRUE if stored */
966
 
UNIV_STATIC
 
966
static
967
967
ibool
968
968
sync_thread_levels_contain(
969
969
/*=======================*/