Methods of Class Semaphore
-
Semaphore
- Semaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Creates a semaphore.
- Parameters
InitialCount |
denotes the starting value the semaphore. If you set it to
zero, the first acquire() blocks. Otherwise InitialCount acquire()s are
immedeatly successfull.
|
- See Also
- ::osl_createSemaphore()
-
~Semaphore
- ~Semaphore();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Release the OS-structures and free semaphore data-structure
- See Also
- ::osl_destroySemaphore()
-
acquire
- sal_Bool acquire();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Decreases the count of the semaphore object.
- Description
- It will block if it tries to decrease below zero.
- Return
- sal_False if the system-call failed
- See Also
- ::osl_acquireSemaphore()
-
tryToAcquire
- sal_Bool tryToAcquire();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Tries to decreases the count of the semaphore.
- Return
- 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.
- See Also
- ::osl_tryToAcquireSemaphore()
-
release
- sal_Bool release();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Increases the count.
- Return
- sal_False if the system-call failed.
- See Also
- ::osl_releaseSemaphore()
Top of Page
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.