Logo white

Peter M. Groen / FlashMQ

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • FlashMQ
  • rwlockguard.h
  • Continued with my tree-based subscriptions
    fa805a94
    Wiebe Cazemier authored
    2021-03-20 19:02:25 +0100  
    Browse Code ยป
rwlockguard.h 262 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef RWLOCKGUARD_H
#define RWLOCKGUARD_H


#include <pthread.h>

class RWLockGuard
{
    pthread_rwlock_t *rwlock = NULL;
public:
    RWLockGuard(pthread_rwlock_t *rwlock);
    ~RWLockGuard();
    void wrlock();
    void rdlock();
};

#endif // RWLOCKGUARD_H