Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
locker< L > Class Template Reference
Inheritance diagram for locker< L >:
IRunnable

Public Member Functions

 locker (CSharedSection &o, std::atomic< long > *mutex_=NULL, CEvent *wait_=NULL)
 
 locker (CSharedSection &o, CEvent *wait_=NULL)
 
void Run () override
 
- Public Member Functions inherited from IRunnable
virtual void Cancel ()
 
virtual ~IRunnable ()=default
 

Public Attributes

volatile bool haslock
 
volatile bool obtainedlock
 

Constructor & Destructor Documentation

◆ locker() [1/2]

template<class L >
locker< L >::locker ( CSharedSection o,
std::atomic< long > *  mutex_ = NULL,
CEvent wait_ = NULL 
)
inline

◆ locker() [2/2]

template<class L >
locker< L >::locker ( CSharedSection o,
CEvent wait_ = NULL 
)
inline

Member Function Documentation

◆ Run()

template<class L >
void locker< L >::Run ( )
inlineoverridevirtual

Implements IRunnable.

Member Data Documentation

◆ haslock

template<class L >
volatile bool locker< L >::haslock

◆ obtainedlock

template<class L >
volatile bool locker< L >::obtainedlock

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