145
146
enum thr_lock_type lock_type);
146
147
void thr_unlock(THR_LOCK_DATA *data);
147
148
enum enum_thr_lock_result thr_multi_lock(THR_LOCK_DATA **data,
150
151
void thr_abort_locks(THR_LOCK *lock, bool upgrade_lock);
151
152
bool thr_abort_locks_for_thread(THR_LOCK *lock, my_thread_id thread);
152
154
bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data);
153
155
void thr_downgrade_write_lock(THR_LOCK_DATA *data,
154
156
enum thr_lock_type new_lock_type);