xbmc
Public Member Functions | Protected Attributes | Friends | List of all members
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());


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