8#include "daq/slc/system/RWLock.h"
12RWLock::RWLock() : m_lock() {}
18 pthread_rwlockattr_t attr;
19 pthread_rwlockattr_init(&attr);
20 pthread_rwlockattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
21 pthread_rwlock_init(&m_lock, &attr);
22 pthread_rwlockattr_destroy(&attr);
28 if (pthread_rwlock_rdlock(&m_lock) != 0) {
37 if (pthread_rwlock_wrlock(&m_lock) != 0) {
45 if (pthread_rwlock_unlock(&m_lock) != 0) {
54 if (pthread_rwlock_destroy(&m_lock) != 0) {
Abstract base class for different kinds of events.