drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
lock0iter.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 2007, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef lock0iter_h
28#define lock0iter_h
29
30#include "univ.i"
31#include "lock0types.h"
32
34 const lock_t* current_lock;
35 /* In case this is a record lock queue (not table lock queue)
36 then bit_no is the record number within the heap in which the
37 record is stored. */
38 ulint bit_no;
39} lock_queue_iterator_t;
40
41/*******************************************************************/
50UNIV_INTERN
51void
53/*======================*/
54 lock_queue_iterator_t* iter,
55 const lock_t* lock,
56 ulint bit_no);
58
59/*******************************************************************/
64
65const lock_t*
67/*=========================*/
68 lock_queue_iterator_t* iter);
69
70#endif /* lock0iter_h */
const lock_t * lock_queue_iterator_get_prev(lock_queue_iterator_t *iter)
Definition lock0iter.cc:87
UNIV_INTERN void lock_queue_iterator_reset(lock_queue_iterator_t *iter, const lock_t *lock, ulint bit_no)
Definition lock0iter.cc:50