MySQL 5.6.14 Source Code Document
|
#include "srv0mon.h"
#include "que0que.h"
#include "lock0lock.h"
#include "row0mysql.h"
#include "srv0start.h"
#include "ha_prototypes.h"
#include "lock0priv.h"
Go to the source code of this file.
Functions | |
UNIV_INTERN void | lock_wait_suspend_thread (que_thr_t *thr) |
UNIV_INTERN void | lock_wait_release_thread_if_suspended (que_thr_t *thr) |
UNIV_INTERN os_thread_ret_t DECLARE_THREAD() | lock_wait_timeout_thread (void *arg __attribute__((unused))) |
UNIV_INTERN void lock_wait_release_thread_if_suspended | ( | que_thr_t * | thr | ) |
Releases a user OS thread waiting for a lock to be released, if the thread is already suspended.
thr | in: query thread associated with the user OS thread |
Definition at line 395 of file lock0wait.cc.
UNIV_INTERN void lock_wait_suspend_thread | ( | que_thr_t * | thr | ) |
Puts a user OS thread to wait for a lock to be released. If an error occurs during the wait trx->error_state associated with thr is != DB_SUCCESS when we return. DB_LOCK_WAIT_TIMEOUT and DB_DEADLOCK are possible errors. DB_DEADLOCK is returned if selective deadlock resolution chose this transaction as a victim.
thr | in: query thread associated with the user OS thread |
Definition at line 195 of file lock0wait.cc.
UNIV_INTERN os_thread_ret_t DECLARE_THREAD() lock_wait_timeout_thread | ( | void *arg | __attribute__(unused) | ) |
A thread which wakes up threads whose lock wait may have lasted too long.
Definition at line 480 of file lock0wait.cc.