mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge MWL#116 into mariadb-5.2-rpl.
This commit is contained in:
@ -2454,6 +2454,14 @@ public:
|
||||
return backup;
|
||||
}
|
||||
|
||||
void clear_wakeup_ready() { wakeup_ready= false; }
|
||||
/*
|
||||
Sleep waiting for others to wake us up with signal_wakeup_ready().
|
||||
Must call clear_wakeup_ready() before waiting.
|
||||
*/
|
||||
void wait_for_wakeup_ready();
|
||||
/* Wake this thread up from wait_for_wakeup_ready(). */
|
||||
void signal_wakeup_ready();
|
||||
private:
|
||||
/** The current internal error handler for this thread, or NULL. */
|
||||
Internal_error_handler *m_internal_handler;
|
||||
@ -2492,6 +2500,16 @@ private:
|
||||
*/
|
||||
LEX_STRING invoker_user;
|
||||
LEX_STRING invoker_host;
|
||||
/*
|
||||
Flag, mutex and condition for a thread to wait for a signal from another
|
||||
thread.
|
||||
|
||||
Currently used to wait for group commit to complete, can also be used for
|
||||
other purposes.
|
||||
*/
|
||||
bool wakeup_ready;
|
||||
pthread_mutex_t LOCK_wakeup_ready;
|
||||
pthread_cond_t COND_wakeup_ready;
|
||||
};
|
||||
|
||||
/** A short cut for thd->main_da.set_ok_status(). */
|
||||
|
Reference in New Issue
Block a user