Global Functions in Global Namespace C++
in Sourcefile semaphor.h
-
osl_acquireSemaphore
- extern "C"
sal_Bool osl_acquireSemaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Decrease the count of a semaphore.
- Description
- It will block if it tries to decrease below zero.
- Return
- sal_False if the system-call failed.
-
osl_createSemaphore
- extern "C"
oslSemaphore osl_createSemaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- 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.
|
- Return
- NULL if the semaphore could not be created, otherwise a handle
to the created semaphore object.
-
osl_destroySemaphore
- extern "C"
void osl_destroySemaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Release the OS-structures and free semaphore data-structure.
-
osl_releaseSemaphore
- extern "C"
sal_Bool osl_releaseSemaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Increases the count of a semaphore.
- Return
- sal_False if the system-call failed.
-
osl_tryToAcquireSemaphore
- extern "C"
sal_Bool osl_tryToAcquireSemaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- tries to decreases the count of a 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.
Top of Page
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.