@@ -89,23 +89,11 @@ typedef struct st_thr_lock_info
8989{
9090 pthread_t thread ;
9191 my_thread_id thread_id ;
92- ulong n_cursors ;
9392} THR_LOCK_INFO ;
9493
95- /*
96- Lock owner identifier. Globally identifies the lock owner within the
97- thread and among all the threads. The address of an instance of this
98- structure is used as id.
99- */
100-
101- typedef struct st_thr_lock_owner
102- {
103- THR_LOCK_INFO * info ;
104- } THR_LOCK_OWNER ;
105-
10694
10795typedef struct st_thr_lock_data {
108- THR_LOCK_OWNER * owner ;
96+ THR_LOCK_INFO * owner ;
10997 struct st_thr_lock_data * next ,* * prev ;
11098 struct st_thr_lock * lock ;
11199 mysql_cond_t * cond ;
@@ -141,19 +129,18 @@ extern LIST *thr_lock_thread_list;
141129extern mysql_mutex_t THR_LOCK_lock ;
142130
143131my_bool init_thr_lock (void ); /* Must be called once/thread */
144- #define thr_lock_owner_init (owner , info_arg ) (owner)->info= (info_arg)
145132void thr_lock_info_init (THR_LOCK_INFO * info );
146133void thr_lock_init (THR_LOCK * lock );
147134void thr_lock_delete (THR_LOCK * lock );
148135void thr_lock_data_init (THR_LOCK * lock ,THR_LOCK_DATA * data ,
149136 void * status_param );
150137enum enum_thr_lock_result thr_lock (THR_LOCK_DATA * data ,
151- THR_LOCK_OWNER * owner ,
138+ THR_LOCK_INFO * owner ,
152139 enum thr_lock_type lock_type ,
153140 ulong lock_wait_timeout );
154141void thr_unlock (THR_LOCK_DATA * data );
155142enum enum_thr_lock_result thr_multi_lock (THR_LOCK_DATA * * data ,
156- uint count , THR_LOCK_OWNER * owner ,
143+ uint count , THR_LOCK_INFO * owner ,
157144 ulong lock_wait_timeout );
158145void thr_multi_unlock (THR_LOCK_DATA * * data ,uint count );
159146void
0 commit comments