WPILibC++ 2024.3.2
wpi::detail::SafeThreadProxy< T > Class Template Reference

A proxy for SafeThread. More...

#include <wpi/SafeThread.h>

Inheritance diagram for wpi::detail::SafeThreadProxy< T >:
wpi::detail::SafeThreadProxyBase

Public Member Functions

 SafeThreadProxy (std::shared_ptr< SafeThreadBase > thr)
 
T & operator* () const
 
T * operator-> () const
 
- Public Member Functions inherited from wpi::detail::SafeThreadProxyBase
 SafeThreadProxyBase (std::shared_ptr< SafeThreadBase > thr)
 
 operator bool () const
 
std::unique_lock< wpi::mutex > & GetLock ()
 

Additional Inherited Members

- Protected Attributes inherited from wpi::detail::SafeThreadProxyBase
std::shared_ptr< SafeThreadBasem_thread
 
std::unique_lock< wpi::mutexm_lock
 

Detailed Description

template<typename T>
class wpi::detail::SafeThreadProxy< T >

A proxy for SafeThread.

Also serves as a scoped lock on SafeThread::m_mutex.

Constructor & Destructor Documentation

◆ SafeThreadProxy()

template<typename T >
wpi::detail::SafeThreadProxy< T >::SafeThreadProxy ( std::shared_ptr< SafeThreadBase thr)
inlineexplicit

Member Function Documentation

◆ operator*()

template<typename T >
T & wpi::detail::SafeThreadProxy< T >::operator* ( ) const
inline

◆ operator->()

template<typename T >
T * wpi::detail::SafeThreadProxy< T >::operator-> ( ) const
inline

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