MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lock0wait.cc File Reference
#include "srv0mon.h"
#include "que0que.h"
#include "lock0lock.h"
#include "row0mysql.h"
#include "srv0start.h"
#include "ha_prototypes.h"
#include "lock0priv.h"
Include dependency graph for lock0wait.cc:

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)))

Detailed Description

The transaction lock system

Created 25/5/2010 Sunny Bains

Definition in file lock0wait.cc.

Function Documentation

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.

Parameters
thrin: query thread associated with the user OS thread

Definition at line 395 of file lock0wait.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
thrin: query thread associated with the user OS thread

Definition at line 195 of file lock0wait.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Returns
a dummy parameter

Definition at line 480 of file lock0wait.cc.

Here is the call graph for this function: