Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
lockless consistency guaranteeer More...
#include <AEUtil.h>
Public Member Functions | |
void | enter () |
void | leave () |
Protected Attributes | |
std::atomic_uint32_t | m_enter = 0 |
std::atomic_uint32_t | m_leave = 0 |
Friends | |
class | CAESpinLock |
lockless consistency guaranteeer
Requires write to be a higher priority thread
use in writer: m_locker.enter(); update_stuff(); m_locker.leave();
use in reader: CAESpinLock lock(m_locker); do { get_stuff(); } while(lock.retry());
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |