spin.h
来自「关系型数据库 Postgresql 6.5.2」· C头文件 代码 · 共 36 行
H
36 行
/*------------------------------------------------------------------------- * * spin.h * synchronization routines * * * Copyright (c) 1994, Regents of the University of California * * $Id: spin.h,v 1.8.2.1 1999/07/30 17:07:18 scrappy Exp $ * *------------------------------------------------------------------------- */#ifndef SPIN_H#define SPIN_H#include "storage/ipc.h"/* * two implementations of spin locks * * sequent, sparc, sun3: real spin locks. uses a TAS instruction; see * src/storage/ipc/s_lock.c for details. * * default: fake spin locks using semaphores. see spin.c * */typedef int SPINLOCK;extern bool CreateSpinlocks(IPCKey key);extern bool InitSpinLocks(int init, IPCKey key);extern void SpinAcquire(SPINLOCK lockid);extern void SpinRelease(SPINLOCK lockid);#endif /* SPIN_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?