vpsema man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



vpsema(D3X)							   vpsema(D3X)

NAME
     vpsema - perform an atomic "V" and "P" semaphore operation on two
     semaphores

SYNOPSIS
     #include "sys/types.h"
     #include "sys/param.h"
     #include "sys/sema.h"

     vpsema(sema_t *sema1p, sema_t *sema2p, int priority);

DESCRIPTION
     vpsema performs a vsema operation with the first semaphore and a psema on
     the second semaphore and the given priority. (See psema(D3X) and
     vsema(D3X) for details on these operations.) vpsema is atomic in the
     sense that no other process (on a multiprocessor) can perform a semaphore
     operation on the first semaphore before the psema operation has been
     performed on the second semaphore. It effectively "swaps" one semaphore
     for another.

     To initialize semaphores, use initnsema(D3X) or initnsema_mutex(D3X).

   Return Values
     vpsema returns -1 if a signal interrupts a breakable sleep and PCATCH was
     set; otherwise, it returns 0.

   See Also
     initnsema(D3X), initnsema_mutex(D3X), psema(D3X), vsema(D3X),
     SLEEP_UNLOCK(D3)

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net