mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Make killing of threads safer
This commit is contained in:
@ -326,11 +326,9 @@ public:
|
||||
const char* msg)
|
||||
{
|
||||
const char* old_msg = proc_info;
|
||||
pthread_mutex_lock(&mysys_var->mutex);
|
||||
mysys_var->current_mutex = mutex;
|
||||
mysys_var->current_cond = cond;
|
||||
proc_info = msg;
|
||||
pthread_mutex_unlock(&mysys_var->mutex);
|
||||
return old_msg;
|
||||
}
|
||||
inline void exit_cond(const char* old_msg)
|
||||
|
Reference in New Issue
Block a user