version 1.7, 2008/08/14 17:44:27
|
version 1.7.2.2, 2008/08/21 15:06:30
|
|
|
# define PEGASUS_USE_POSIX_RWLOCK | # define PEGASUS_USE_POSIX_RWLOCK |
#elif defined(PEGASUS_PLATFORM_HPUX_ACC) | #elif defined(PEGASUS_PLATFORM_HPUX_ACC) |
# define PEGASUS_USE_POSIX_RWLOCK | # define PEGASUS_USE_POSIX_RWLOCK |
#elif defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
#elif defined(PEGASUS_OS_SOLARIS) |
# define PEGASUS_USE_POSIX_RWLOCK | # define PEGASUS_USE_POSIX_RWLOCK |
#elif defined(PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) | #elif defined(PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) |
# define PEGASUS_USE_POSIX_RWLOCK | # define PEGASUS_USE_POSIX_RWLOCK |
|
|
| |
~ReadWriteSem(); | ~ReadWriteSem(); |
| |
// @exception Deadlock |
|
// @exception Permission | // @exception Permission |
// @exception WaitFailed | // @exception WaitFailed |
inline void wait_read(ThreadType caller) | inline void wait_read(ThreadType caller) |
|
|
_wait(false, caller); | _wait(false, caller); |
} | } |
| |
// @exception Deadlock |
|
// @exception Permission | // @exception Permission |
// @exception WaitFailed | // @exception WaitFailed |
inline void wait_write(ThreadType caller) | inline void wait_write(ThreadType caller) |
|
|
int write_count() const; | int write_count() const; |
| |
private: | private: |
// @exception Deadlock |
|
// @exception Permission | // @exception Permission |
// @exception WaitFailed | // @exception WaitFailed |
void _wait(Boolean writeLock, ThreadType caller); | void _wait(Boolean writeLock, ThreadType caller); |