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 |
- D E P R E C A T E D
- Summary
- acquire()decreases the count. It will block if it tries to
decrease below zero.
- Description
-
Must not be used, as unnamed semaphores are not supported on Mac OS X.
- Return
- 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 |
- D E P R E C A T E D
- Summary
- Creates a semaphore.
- Description
-
Must not be used, as unnamed semaphores are not supported on Mac OS X.
- 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
- 0 if the semaphore could not be created, otherwise a handle to the sem.
- osl_destroySemaphore
- extern "C"
void osl_destroySemaphore(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- D E P R E C A T E D
- Summary
- Release the OS-structures and free semaphore data-structure
- Description
-
Must not be used, as unnamed semaphores are not supported on Mac OS X.
- Return
- fbbb
- 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 |
- D E P R E C A T E D
- Summary
- release()increases the count.
- Description
-
Must not be used, as unnamed semaphores are not supported on Mac OS X.
- Return
- 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 |
- D E P R E C A T E D
- Description
- 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.
Must not be used, as unnamed semaphores are not supported on Mac OS X.
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.