|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Typedefs | |
| typedef struct PGSemaphoreData * | PGSemaphore |
Functions | |
| void | PGSemaphoreShmemRequest (int maxSemas) |
| void | PGSemaphoreInit (int maxSemas) |
| PGSemaphore | PGSemaphoreCreate (void) |
| void | PGSemaphoreReset (PGSemaphore sema) |
| void | PGSemaphoreLock (PGSemaphore sema) |
| void | PGSemaphoreUnlock (PGSemaphore sema) |
| bool | PGSemaphoreTryLock (PGSemaphore sema) |
| typedef struct PGSemaphoreData* PGSemaphore |
|
extern |
Definition at line 255 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 ProcGlobalShmemInit().
Definition at line 198 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, ReleaseSemaphores(), ReleaseSemaphores(), ReleaseSemaphores(), SEMAS_PER_SET, and stat.
Referenced by ProcGlobalShmemInit().
|
extern |
Definition at line 313 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 288 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(), mul_size(), name, sharedSemas, sharedSemas, and ShmemRequestStruct.
Referenced by ProcGlobalShmemRequest().
|
extern |
Definition at line 358 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 333 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().