diff options
author | sb <sb@openoffice.org> | 2010-01-14 17:45:24 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-01-14 17:45:24 +0100 |
commit | 1b25da733557cb7029d2656d4ba250b518f5d61f (patch) | |
tree | 36d5ff03dc54ea328a5d221e785536b2a54f4cf7 /sal/inc/osl | |
parent | 7a561fc939a4138b557ffab64ae438eac74216cd (diff) |
sb118: #i108324# deprecated osl/semaphor.h etc., as it is unsupported on Mac OS X and unused, anyway
Diffstat (limited to 'sal/inc/osl')
-rw-r--r-- | sal/inc/osl/semaphor.h | 19 | ||||
-rw-r--r-- | sal/inc/osl/semaphor.hxx | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/sal/inc/osl/semaphor.h b/sal/inc/osl/semaphor.h index 23a2b2615..7c6f68484 100644 --- a/sal/inc/osl/semaphor.h +++ b/sal/inc/osl/semaphor.h @@ -40,6 +40,10 @@ extern "C" { typedef void* oslSemaphore; /** Creates a semaphore.<BR> + + @deprecated + Must not be used, as unnamed semaphores are not supported on Mac OS X. + @param InitialCount denotes the starting value the semaphore. If you set it to zero, the first acquire() blocks. Otherwise InitialCount acquire()s are immedeatly successfull. @@ -48,12 +52,20 @@ typedef void* oslSemaphore; oslSemaphore SAL_CALL osl_createSemaphore(sal_uInt32 initialCount); /** Release the OS-structures and free semaphore data-structure + + @deprecated + Must not be used, as unnamed semaphores are not supported on Mac OS X. + @return fbbb */ void SAL_CALL osl_destroySemaphore(oslSemaphore Semaphore); /** acquire() decreases the count. It will block if it tries to decrease below zero. + + @deprecated + Must not be used, as unnamed semaphores are not supported on Mac OS X. + @return False if the system-call failed. */ sal_Bool SAL_CALL osl_acquireSemaphore(oslSemaphore Semaphore); @@ -62,10 +74,17 @@ sal_Bool SAL_CALL osl_acquireSemaphore(oslSemaphore Semaphore); 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. + + @deprecated + Must not be used, as unnamed semaphores are not supported on Mac OS X. */ sal_Bool SAL_CALL osl_tryToAcquireSemaphore(oslSemaphore Semaphore); /** release() increases the count. + + @deprecated + Must not be used, as unnamed semaphores are not supported on Mac OS X. + @return False if the system-call failed. */ sal_Bool SAL_CALL osl_releaseSemaphore(oslSemaphore Semaphore); diff --git a/sal/inc/osl/semaphor.hxx b/sal/inc/osl/semaphor.hxx index 5a667fe90..9942ccfea 100644 --- a/sal/inc/osl/semaphor.hxx +++ b/sal/inc/osl/semaphor.hxx @@ -38,7 +38,11 @@ namespace osl { + /** C++ wrapper class around C semaphore functions. + @deprecated + Must not be used, as unnamed semaphores are not supported on Mac OS X. + */ class Semaphore { public: |