|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Typedefs | |
| typedef struct PGSemaphoreData * | PGSemaphore |
Functions | |
| Size | PGSemaphoreShmemSize (int maxSemas) |
| void | PGReserveSemaphores (int maxSemas) |
| PGSemaphore | PGSemaphoreCreate (void) |
| void | PGSemaphoreReset (PGSemaphore sema) |
| void | PGSemaphoreLock (PGSemaphore sema) |
| void | PGSemaphoreUnlock (PGSemaphore sema) |
| bool | PGSemaphoreTryLock (PGSemaphore sema) |
Definition at line 196 of file posix_sema.c.
References DataDir, elog, ereport, errcode_for_file_access(), errmsg(), FATAL, fb(), malloc, maxSemaSets, maxSems, maxSems, maxSharedSemas, mySemaSets, mySemSet, nextSemaKey, nextSemaNumber, nextSemKey, numSemaSets, numSems, numSems, numSharedSemas, on_shmem_exit(), PANIC, PGSemaphoreShmemSize(), ReleaseSemaphores(), ReleaseSemaphores(), ReleaseSemaphores(), SEMAS_PER_SET, sharedSemas, sharedSemas, ShmemAlloc(), and stat.
Referenced by InitProcGlobal().
|
extern |
Definition at line 257 of file posix_sema.c.
References Assert, elog, ereport, errmsg(), fb(), IpcSemaphoreCreate(), IpcSemaphoreInitialize(), IsUnderPostmaster, maxSemaSets, maxSems, maxSems, maxSharedSemas, mySemaSets, mySemSet, nextSemaNumber, numSemaSets, numSems, numSems, numSharedSemas, PANIC, PG_SEM_REF, PosixSemaphoreCreate(), SEMAS_PER_SET, PGSemaphoreData::semId, PGSemaphoreData::semNum, sharedSemas, and sharedSemas.
Referenced by InitProcGlobal().
|
extern |
Definition at line 315 of file posix_sema.c.
References CHECK_FOR_INTERRUPTS, EINTR, elog, ereport, errmsg(), FATAL, fb(), PG_SEM_REF, pgwin32_dispatch_queued_signals(), pgwin32_signal_event, PGSemaphoreData::semId, and PGSemaphoreData::semNum.
Referenced by BufferLockAcquire(), BufferLockDequeueSelf(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockDequeueSelf(), LWLockWaitForVar(), ProcArrayGroupClearXid(), and TransactionGroupUpdateXidStatus().
|
extern |
Definition at line 290 of file posix_sema.c.
References EAGAIN, EINTR, elog, FATAL, fb(), IpcSemaphoreInitialize(), PG_SEM_REF, PGSemaphoreTryLock(), PGSemaphoreData::semId, and PGSemaphoreData::semNum.
Referenced by InitAuxiliaryProcess(), and InitProcess().
Definition at line 165 of file posix_sema.c.
References fb(), and mul_size().
Referenced by PGReserveSemaphores(), and ProcGlobalShmemSize().
|
extern |
Definition at line 360 of file posix_sema.c.
References EAGAIN, EINTR, elog, ereport, errmsg(), EWOULDBLOCK, FATAL, fb(), IPC_NOWAIT, PG_SEM_REF, PGSemaphoreData::semId, and PGSemaphoreData::semNum.
Referenced by PGSemaphoreReset().
|
extern |
Definition at line 335 of file posix_sema.c.
References EINTR, elog, ereport, errmsg(), FATAL, fb(), PG_SEM_REF, PGSemaphoreData::semId, and PGSemaphoreData::semNum.
Referenced by BufferLockAcquire(), BufferLockDequeueSelf(), BufferLockWakeup(), IpcSemaphoreCreate(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockDequeueSelf(), LWLockUpdateVar(), LWLockWaitForVar(), LWLockWakeup(), ProcArrayGroupClearXid(), and TransactionGroupUpdateXidStatus().