Revised OpenFlow Library  v0.6.0dev
 All Classes Files Functions Variables Friends Groups Pages
Public Types | Public Member Functions | List of all members
rofl::RwLock Class Reference

Public Types

enum  rwlock_rwtype_t { RWLOCK_READ = 1, RWLOCK_WRITE = 2 }
 

Public Member Functions

 RwLock (pthread_rwlock_t *rwlock, uint8_t rwtype=RWLOCK_WRITE, bool blocking=true) throw (eLockWouldBlock, eLockInval)
 
 RwLock (PthreadRwLock &pthreadRwLock, uint8_t rwtype=RWLOCK_WRITE, bool blocking=true) throw (eLockWouldBlock, eLockInval)
 
virtual ~RwLock ()
 

Constructor & Destructor Documentation

rofl::RwLock::RwLock ( pthread_rwlock_t *  rwlock,
uint8_t  rwtype = RWLOCK_WRITE,
bool  blocking = true 
)
throw (eLockWouldBlock,
eLockInval
)
inline

constructor locks rwlock (or checks for existing lock)

rofl::RwLock::RwLock ( PthreadRwLock pthreadRwLock,
uint8_t  rwtype = RWLOCK_WRITE,
bool  blocking = true 
)
throw (eLockWouldBlock,
eLockInval
)
inline

constructor locks rwlock (or checks for existing lock)

virtual rofl::RwLock::~RwLock ( )
inlinevirtual

destructor unlocks rwlock (if it has been locked)


The documentation for this class was generated from the following file: