AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Runnable Class Referenceabstract

#include "Threading.h"

Public Member Functions

virtual ~Runnable ()=default
 
virtual void run ()=0
 
void incReference ()
 
void decReference ()
 

Private Attributes

std::atomic_long m_refs
 

Detailed Description

Constructor & Destructor Documentation

◆ ~Runnable()

virtual Acore::Runnable::~Runnable ( )
virtualdefault

Member Function Documentation

◆ decReference()

void Acore::Runnable::decReference ( )
inline
34 {
35 if (!--m_refs)
36 {
37 delete this;
38 }
39 }
std::atomic_long m_refs
Definition: Threading.h:41

References m_refs.

Referenced by Acore::Thread::~Thread().

◆ incReference()

void Acore::Runnable::incReference ( )
inline
32{ ++m_refs; }

References m_refs.

Referenced by Acore::Thread::Thread().

◆ run()

virtual void Acore::Runnable::run ( )
pure virtual

Member Data Documentation

◆ m_refs

std::atomic_long Acore::Runnable::m_refs
private

Referenced by decReference(), and incReference().