lock.h

来自「uClinux下用的数据库」· C头文件 代码 · 共 61 行

H
61
字号
/*** lock Header File	(Public)*//************************************************************************* Standard header preamble.  Ensure singular inclusion, setup for** function prototypes and c++ inclusion*/#ifndef LOCK_H#define LOCK_H 1#if defined(__STDC__) || defined(__cplusplus)#  define __ANSI_PROTO(x)       x#else#  define __ANSI_PROTO(x)       ()#endif#ifdef __cplusplusextern "C" {#endif/************************************************************************* Macro Definitions*/#define MSQL_WR_LOCK    1#define MSQL_RD_LOCK    2#define MSQL_UNLOCK     3/************************************************************************* Type Definitions*//************************************************************************* Function Prototypes*/void lockGetFileLock __ANSI_PROTO((msqld*,int,int));void lockGetIpcLock __ANSI_PROTO((msqld*));void lockReleaseIpcLock __ANSI_PROTO((msqld*));int lockNonBlockingLock __ANSI_PROTO((int));/************************************************************************* Standard header file footer.  */#ifdef __cplusplus	}#endif /* __cplusplus */#endif /* file inclusion */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?