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

volatile unsigned int m_enter = 0
 
volatile unsigned int 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

volatile unsigned int CAESpinSection::m_enter = 0
protected

◆ m_leave

volatile unsigned int CAESpinSection::m_leave = 0
protected

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