gPTP Documentation
|
#include <avbts_oslock.hpp>
Public Member Functions | |
virtual OSLockResult | lock ()=0 |
Locks a critical section. More... | |
virtual OSLockResult | unlock ()=0 |
Unlocks a critical section. More... | |
virtual OSLockResult | trylock ()=0 |
Tries locking a critical section. More... | |
Protected Member Functions | |
OSLock () | |
bool | initialize (OSLockType type) |
Initializes locking mechanism. More... | |
Provides a generic mechanism for locking critical sections.
|
inlineprotected |
Default constructor
|
inlineprotected |
Initializes locking mechanism.
type | Enumeration OSLockType |
|
pure virtual |
Locks a critical section.
Implemented in LinuxLock, and WindowsLock.
|
pure virtual |
Tries locking a critical section.
Implemented in LinuxLock, and WindowsLock.
|
pure virtual |
Unlocks a critical section.
Implemented in LinuxLock, and WindowsLock.