Overview | Namespace | Class | Index | Help |
oslSemaphore | Semaphore ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
acquire()decreases the count. It will block if it tries to decrease below zero.
False if the system-call failed.
sal_uInt32 | initialCount ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Creates a semaphore.<BR>
InitialCount | denotes the starting value the semaphore. If you set it to zero, the first acquire() blocks. Otherwise InitialCount acquire()s are immedeatly successfull. |
0 if the semaphore could not be created, otherwise a handle to the sem.
oslSemaphore | Semaphore ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Release the OS-structures and free semaphore data-structure
fbbb
oslSemaphore | Semaphore ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
release()increases the count.
False if the system-call failed.
oslSemaphore | Semaphore ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
tryToAcquire()tries to decreases the count. It will return with False if it would decrease the count below zero. (When acquire() would block.) If it could successfully decrease the count, it will return True.
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.