|
System.Posix.Semaphore | Portability | non-portable (requires POSIX) | Stability | experimental | Maintainer | libraries@haskell.org |
|
|
|
Description |
POSIX named semaphore support.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Constructors | OpenSemFlags | | semCreate :: Bool | If true, create the semaphore if it
does not yet exist.
| semExclusive :: Bool | If true, throw an exception if the
semaphore already exists.
|
|
|
|
|
|
|
|
Open a named semaphore with the given name, flags, mode, and initial
value.
|
|
|
Delete the semaphore with the given name.
|
|
|
Lock the semaphore, blocking until it becomes available. Since this
is done through a system call, this will block the *entire runtime*,
not just the current thread. If this is not the behaviour you want,
use semThreadWait instead.
|
|
|
Attempt to lock the semaphore without blocking. Immediately return
False if it is not available.
|
|
|
Poll the semaphore until it is available, then lock it. Unlike
semWait, this will block only the current thread rather than the
entire process.
|
|
|
Unlock the semaphore.
|
|
|
Return the semaphore's current value.
|
|
Produced by Haddock version 0.8 |