cvsema man page on IRIX

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



cvsema(D3X)							   cvsema(D3X)

NAME
     cvsema - conditionally perform a "V" or signal semaphore operation

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

     int cvsema(sema_t *semap);

   Arguments
     semap
	  Expects a pointer to the semaphore you want cvsema to conditionally
	  increment.

DESCRIPTION
     cvsema routine conditionally performs a "V" operation depending on the
     current value of the semaphore. If the semaphore value is strictly less
     than 0, cvsema increments the semaphore value by 1 and wakes up a
     sleeping process.	Otherwise, cvsema simply returns. cvsema effectively
     performs a "V" operation if there is a process asleep on the semaphore;
     otherwise, it does nothing. To initialize semaphores before you use them,
     call initnsema(D3X) or initnsema_mutex(D3X).

   Return Values
     cvsema returns 1 if the semaphore value is less than 0 and a process is
     awakened. Otherwise cvsema returns 0.

   See Also
     initnsema(D3X), initnsema_mutex(D3X), vsema(D3X)

									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