diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-02-26 02:40:58 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-02-26 02:40:58 +0000 |
commit | 258effa48735738d63d963532a5ce840cda4c455 (patch) | |
tree | bbbeb08caf412f91c458f9b2148eea0ae0c2ef7b /ace/Synch.i | |
parent | 1746a2d295f7cfdfaa013cddf7e71aab18e744b1 (diff) | |
download | ATCD-258effa48735738d63d963532a5ce840cda4c455.tar.gz |
Added an ACE_Null_Semaphore class. Thanks to Irfan for his guidance
on this. Also fixed ACE_SYNCH_SEMAPHORE to be ACE_Null_Semaphore
when ACE is built without thread support.
Diffstat (limited to 'ace/Synch.i')
-rw-r--r-- | ace/Synch.i | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/ace/Synch.i b/ace/Synch.i index 390039597c8..bd1bd1ee579 100644 --- a/ace/Synch.i +++ b/ace/Synch.i @@ -443,6 +443,87 @@ ACE_Process_Semaphore::tryacquire_write (void) return this->tryacquire (); } +// Null ACE_Semaphore implementation + +ACE_INLINE +ACE_Null_Semaphore::ACE_Null_Semaphore (u_int, + int, + LPCTSTR, + void *, + int) +{ +} + +ACE_INLINE +ACE_Null_Semaphore::~ACE_Null_Semaphore (void) +{ +} + +ACE_INLINE int +ACE_Null_Semaphore::remove (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::acquire (ACE_Time_Value &) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::acquire (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::tryacquire (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::release (size_t) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::release (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::acquire_write (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::tryacquire_write (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::acquire_read (void) +{ + return 0; +} + +ACE_INLINE int +ACE_Null_Semaphore::tryacquire_read (void) +{ + return 0; +} + +ACE_INLINE void +ACE_Null_Semaphore::dump (void) const +{ +} + #if defined (ACE_HAS_THREADS) ACE_INLINE const ACE_thread_mutex_t & |