34 #ifndef AVBTS_OSLOCK_HPP
35 #define AVBTS_OSLOCK_HPP
44 typedef enum { oslock_recursive, oslock_nonrecursive }
OSLockType;
52 typedef enum { oslock_ok, oslock_self, oslock_held, oslock_fail }
OSLockResult;
93 inline OSLock::~OSLock() {}
110 inline OSLockFactory::~OSLockFactory () {}
OSLockType
Definition: avbts_oslock.hpp:44
virtual OSLock * createLock(OSLockType type)=0
Creates locking mechanism.
OSLockResult
Definition: avbts_oslock.hpp:52
virtual OSLockResult trylock()=0
Tries locking a critical section.
OSLock()
Definition: avbts_oslock.hpp:80
virtual OSLockResult unlock()=0
Unlocks a critical section.
Definition: avbts_oslock.hpp:98
Definition: avbts_oslock.hpp:57
virtual OSLockResult lock()=0
Locks a critical section.
bool initialize(OSLockType type)
Initializes locking mechanism.
Definition: avbts_oslock.hpp:87