1
/******************************************************
2
Lock module internal inline methods.
6
Created July 16, 2007 Vasil Dimov
7
*******************************************************/
9
/* This file contains only methods which are used in
10
lock/lock0* files, other than lock/lock0lock.c.
11
I.e. lock/lock0lock.c contains more internal inline
12
methods but they are used only in that file. */
14
#ifndef LOCK_MODULE_IMPLEMENTATION
15
#error Do not include lock0priv.ic outside of the lock/ module
18
/*************************************************************************
19
Gets the type of a lock. */
24
/* out: LOCK_TABLE or LOCK_REC */
25
const lock_t* lock) /* in: lock */
29
return(lock->type_mode & LOCK_TYPE_MASK);
32
/* vim: set filetype=c: */