|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Functions | |
| static void | ReleaseSemaphores (int code, Datum arg) |
| 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) |
Variables | |
| static HANDLE * | mySemSet |
| static int | numSems |
| static int | maxSems |
| PGSemaphore PGSemaphoreCreate | ( | void | ) |
Definition at line 78 of file win32_sema.c.
References Assert, elog, ereport, errmsg, fb(), IsUnderPostmaster, maxSems, mySemSet, numSems, and PANIC.
Definition at line 46 of file win32_sema.c.
References elog, fb(), malloc, maxSems, mySemSet, numSems, on_shmem_exit(), PANIC, and ReleaseSemaphores().
| void PGSemaphoreLock | ( | PGSemaphore | sema | ) |
Definition at line 131 of file win32_sema.c.
References CHECK_FOR_INTERRUPTS, elog, ereport, errmsg, FATAL, fb(), pgwin32_dispatch_queued_signals(), and pgwin32_signal_event.
| void PGSemaphoreReset | ( | PGSemaphore | sema | ) |
Definition at line 115 of file win32_sema.c.
References PGSemaphoreTryLock().
Definition at line 31 of file win32_sema.c.
| bool PGSemaphoreTryLock | ( | PGSemaphore | sema | ) |
Definition at line 209 of file win32_sema.c.
References EAGAIN, ereport, errmsg, FATAL, and fb().
Referenced by PGSemaphoreReset().
| void PGSemaphoreUnlock | ( | PGSemaphore | sema | ) |
Definition at line 195 of file win32_sema.c.
Definition at line 63 of file win32_sema.c.
References fb(), free, i, mySemSet, and numSems.
Referenced by PGSemaphoreInit().
|
static |
Definition at line 22 of file win32_sema.c.
Referenced by PGSemaphoreCreate(), and PGSemaphoreInit().
|
static |
Definition at line 20 of file win32_sema.c.
Referenced by PGSemaphoreCreate(), PGSemaphoreInit(), and ReleaseSemaphores().
|
static |
Definition at line 21 of file win32_sema.c.
Referenced by PGSemaphoreCreate(), PGSemaphoreInit(), and ReleaseSemaphores().