
Dad method: Semophore
Requests/releases a semaphore from the server. Semaphores are currently
only used to prevent write accesses to the server while the semaphore
holder is updating some database contents.
<dadobj> "Semaphore" valtime [flags]
- <dadobj> is the name of a PinK Dad object,
- Semaphore is the name of the applied method,
- the semaphore will stay valid for valtime seconds.
A value of 0 releases the semaphore. After the validity period has
passed without the client releasing the semaphore again, any other
client's call to dadSemaphore with the same type will succeed and the
clients write permission will vanish.
- The only yet valid flags argument is -w defining
the semaphore to be of the "exclusive write access" type.
This allows only this client to modify the attached database.
The -w flag is also the default.
See also:
Previous
Up
Next
This page is maintained by
pink@hermes.desy.de;
last modification: Jun 1 1995 .