~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/thr_lock.h

  • Committer: Brian Aker
  • Date: 2008-07-13 18:27:33 UTC
  • Revision ID: brian@tangent.org-20080713182733-3u1et5nrmofi8a8n
my_bool cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
extern ulong max_write_lock_count;
75
75
extern ulong table_lock_wait_timeout;
76
 
extern my_bool thr_lock_inited;
 
76
extern bool thr_lock_inited;
77
77
extern enum thr_lock_type thr_upgraded_concurrent_insert_lock;
78
78
 
79
79
/*
128
128
  void (*copy_status)(void*,void*);
129
129
  void (*update_status)(void*);         /* Before release of write */
130
130
  void (*restore_status)(void*);         /* Before release of read */
131
 
  my_bool (*check_status)(void *);
 
131
  bool (*check_status)(void *);
132
132
} THR_LOCK;
133
133
 
134
134
 
135
135
extern LIST *thr_lock_thread_list;
136
136
 
137
 
my_bool init_thr_lock(void);            /* Must be called once/thread */
 
137
bool init_thr_lock(void);               /* Must be called once/thread */
138
138
#define thr_lock_owner_init(owner, info_arg) (owner)->info= (info_arg)
139
139
void thr_lock_info_init(THR_LOCK_INFO *info);
140
140
void thr_lock_init(THR_LOCK *lock);
148
148
enum enum_thr_lock_result thr_multi_lock(THR_LOCK_DATA **data,
149
149
                                         uint count, THR_LOCK_OWNER *owner);
150
150
void thr_multi_unlock(THR_LOCK_DATA **data,uint count);
151
 
void thr_abort_locks(THR_LOCK *lock, my_bool upgrade_lock);
152
 
my_bool thr_abort_locks_for_thread(THR_LOCK *lock, my_thread_id thread);
 
151
void thr_abort_locks(THR_LOCK *lock, bool upgrade_lock);
 
152
bool thr_abort_locks_for_thread(THR_LOCK *lock, my_thread_id thread);
153
153
void thr_print_locks(void);             /* For debugging */
154
 
my_bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data);
 
154
bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data);
155
155
void    thr_downgrade_write_lock(THR_LOCK_DATA *data,
156
156
                                 enum thr_lock_type new_lock_type);
157
 
my_bool thr_reschedule_write_lock(THR_LOCK_DATA *data);
 
157
bool thr_reschedule_write_lock(THR_LOCK_DATA *data);
158
158
#ifdef  __cplusplus
159
159
}
160
160
#endif