|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Functions | |
| static void | ReleaseSemaphores (int code, Datum arg) |
| 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) |
Variables | |
| static HANDLE * | mySemSet |
| static int | numSems |
| static int | maxSems |
| void PGReserveSemaphores | ( | int | maxSemas | ) |
Definition at line 47 of file win32_sema.c.
References elog, malloc, maxSems, mySemSet, numSems, on_shmem_exit(), PANIC, and ReleaseSemaphores().
| PGSemaphore PGSemaphoreCreate | ( | void | ) |
Definition at line 79 of file win32_sema.c.
References Assert(), elog, ereport, errmsg(), IsUnderPostmaster, maxSems, mySemSet, numSems, and PANIC.
| void PGSemaphoreLock | ( | PGSemaphore | sema | ) |
Definition at line 132 of file win32_sema.c.
References CHECK_FOR_INTERRUPTS, elog, ereport, errmsg(), FATAL, pgwin32_dispatch_queued_signals(), and pgwin32_signal_event.
| void PGSemaphoreReset | ( | PGSemaphore | sema | ) |
Definition at line 116 of file win32_sema.c.
References PGSemaphoreTryLock().
| Size PGSemaphoreShmemSize | ( | int | maxSemas | ) |
Definition at line 31 of file win32_sema.c.
| bool PGSemaphoreTryLock | ( | PGSemaphore | sema | ) |
Definition at line 210 of file win32_sema.c.
References EAGAIN, ereport, errmsg(), and FATAL.
Referenced by PGSemaphoreReset().
| void PGSemaphoreUnlock | ( | PGSemaphore | sema | ) |
|
static |
|
static |
Definition at line 22 of file win32_sema.c.
Referenced by PGReserveSemaphores(), and PGSemaphoreCreate().
|
static |
Definition at line 20 of file win32_sema.c.
Referenced by PGReserveSemaphores(), PGSemaphoreCreate(), and ReleaseSemaphores().
|
static |
Definition at line 21 of file win32_sema.c.
Referenced by PGReserveSemaphores(), PGSemaphoreCreate(), and ReleaseSemaphores().