Overview | Namespace | Class | Index | Help |
sal_uInt32 | initialCount ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | YES | NO |
Creates a semaphore.
InitialCount | denotes the starting value the semaphore. If you set it to zero, the first acquire() blocks. Otherwise InitialCount acquire()s are immedeatly successfull. |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | YES | NO |
Release the OS-structures and free semaphore data-structure
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | YES | NO |
Decreases the count of the semaphore object.
It will block if it tries to decrease below zero.
sal_False if the system-call failed
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | YES | NO |
Tries to decreases the count of the semaphore.
sal_False if it would decrease the count below zero (acquire() would block). If it could successfully decrease the count, it will return sal_True.
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | YES | NO |
Increases the count.
sal_False if the system-call failed.
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.