121
121
struct st_lock_list write_wait;
122
122
struct st_lock_list write;
123
123
/* write_lock_count is incremented for write locks and reset on read locks */
126
126
void (*get_status)(void*, int); /* When one gets a lock */
127
127
void (*copy_status)(void*,void*);
128
128
void (*update_status)(void*); /* Before release of write */
129
129
void (*restore_status)(void*); /* Before release of read */
134
134
extern LIST *thr_lock_thread_list;
137
138
#define thr_lock_owner_init(owner, info_arg) (owner)->info= (info_arg)
138
139
void thr_lock_info_init(THR_LOCK_INFO *info);
139
140
void thr_lock_init(THR_LOCK *lock);