version 1.15, 2008/12/02 09:00:52
|
version 1.15.8.1, 2013/06/03 22:35:13
|
|
|
| |
void ReadWriteSem::unlockRead() | void ReadWriteSem::unlockRead() |
{ | { |
int rc = pthread_rwlock_unlock(&_rwlock.rwlock); |
|
// All documented error codes represent coding errors. | // All documented error codes represent coding errors. |
PEGASUS_ASSERT(rc == 0); |
PEGASUS_FCT_EXECUTE_AND_ASSERT(0, pthread_rwlock_unlock(&_rwlock.rwlock)); |
} | } |
| |
void ReadWriteSem::unlockWrite() | void ReadWriteSem::unlockWrite() |
{ | { |
int rc = pthread_rwlock_unlock(&_rwlock.rwlock); |
|
// All documented error codes represent coding errors. | // All documented error codes represent coding errors. |
PEGASUS_ASSERT(rc == 0); |
PEGASUS_FCT_EXECUTE_AND_ASSERT(0, pthread_rwlock_unlock(&_rwlock.rwlock)); |
} | } |
| |
#endif /* PEGASUS_USE_POSIX_RWLOCK */ | #endif /* PEGASUS_USE_POSIX_RWLOCK */ |