PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | SpinLockInit(lock) S_INIT_LOCK(lock) |
#define | SpinLockAcquire(lock) S_LOCK(lock) |
#define | SpinLockRelease(lock) S_UNLOCK(lock) |
#define | SpinLockFree(lock) S_LOCK_FREE(lock) |
Functions | |
int | SpinlockSemas (void) |
Size | SpinlockSemaSize (void) |
void | SpinlockSemaInit (void) |
Variables | |
PGDLLIMPORT PGSemaphore * | SpinlockSemaArray |
#define SpinLockFree | ( | lock | ) | S_LOCK_FREE(lock) |
#define SpinLockInit | ( | lock | ) | S_INIT_LOCK(lock) |
void SpinlockSemaInit | ( | void | ) |
Definition at line 77 of file spin.c.
References i, PGSemaphoreCreate(), ShmemAllocUnlocked(), SpinlockSemaArray, SpinlockSemas(), and SpinlockSemaSize().
Referenced by CreateSharedMemoryAndSemaphores().
int SpinlockSemas | ( | void | ) |
Definition at line 64 of file spin.c.
References NUM_EMULATION_SEMAPHORES.
Referenced by CalculateShmemSize(), and SpinlockSemaInit().
Size SpinlockSemaSize | ( | void | ) |
Definition at line 55 of file spin.c.
References NUM_EMULATION_SEMAPHORES.
Referenced by CalculateShmemSize(), and SpinlockSemaInit().
|
extern |
Definition at line 42 of file spin.c.
Referenced by s_unlock_sema(), SpinlockSemaInit(), and tas_sema().