WPILibC++ 2024.3.2
wpi::SafeThreadBase Class Referenceabstract

Base class for SafeThreadOwner threads. More...

#include <wpi/SafeThread.h>

Inheritance diagram for wpi::SafeThreadBase:
wpi::SafeThread wpi::SafeThreadEvent wpi::CallbackThread< Derived, TUserInfo, TListenerData, TNotifierData > wpi::detail::WorkerThreadThread< R, T > wpi::java::JCallbackThread< T >

Public Member Functions

virtual ~SafeThreadBase ()=default
 
virtual void Main ()=0
 
virtual void Stop ()=0
 

Public Attributes

wpi::mutex m_mutex
 
std::atomic_bool m_active {true}
 
std::thread::id m_threadId
 

Detailed Description

Base class for SafeThreadOwner threads.

Constructor & Destructor Documentation

◆ ~SafeThreadBase()

virtual wpi::SafeThreadBase::~SafeThreadBase ( )
virtualdefault

Member Function Documentation

◆ Main()

◆ Stop()

virtual void wpi::SafeThreadBase::Stop ( )
pure virtual

Implemented in wpi::SafeThread, and wpi::SafeThreadEvent.

Member Data Documentation

◆ m_active

std::atomic_bool wpi::SafeThreadBase::m_active {true}

◆ m_mutex

wpi::mutex wpi::SafeThreadBase::m_mutex
mutable

◆ m_threadId

std::thread::id wpi::SafeThreadBase::m_threadId

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