Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CAESpinSection Class Reference

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
 

Detailed Description

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());

Member Function Documentation

◆ enter()

void CAESpinSection::enter ( )
inline

◆ leave()

void CAESpinSection::leave ( )
inline

Friends And Related Symbol Documentation

◆ CAESpinLock

friend class CAESpinLock
friend

Member Data Documentation

◆ m_enter

std::atomic_uint32_t CAESpinSection::m_enter = 0
protected

◆ m_leave

std::atomic_uint32_t CAESpinSection::m_leave = 0
protected

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