1
/*****************************************************************************
3
Copyright (C) 2007, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/lock0priv.ic
21
Lock module internal inline methods.
23
Created July 16, 2007 Vasil Dimov
24
*******************************************************/
26
/* This file contains only methods which are used in
27
lock/lock0* files, other than lock/lock0lock.c.
28
I.e. lock/lock0lock.c contains more internal inline
29
methods but they are used only in that file. */
31
#ifndef LOCK_MODULE_IMPLEMENTATION
32
#error Do not include lock0priv.ic outside of the lock/ module
35
/*********************************************************************//**
36
Gets the type of a lock.
37
@return LOCK_TABLE or LOCK_REC */
42
const lock_t* lock) /*!< in: lock */
46
return(lock->type_mode & LOCK_TYPE_MASK);
49
/* vim: set filetype=c: */