WPILibC++ 2023.4.3
wpi::SafeThreadOwner< T > Class Template Reference

#include <wpi/SafeThread.h>

Inheritance diagram for wpi::SafeThreadOwner< T >:
wpi::detail::SafeThreadOwnerBase

Public Types

using Proxy = typename detail::SafeThreadProxy< T >
 

Public Member Functions

template<typename... Args>
void Start (Args &&... args)
 
Proxy GetThread () const
 
std::shared_ptr< T > GetThreadSharedPtr () const
 
- Public Member Functions inherited from wpi::detail::SafeThreadOwnerBase
void Stop ()
 
void Join ()
 
 SafeThreadOwnerBase () noexcept=default
 
 SafeThreadOwnerBase (const SafeThreadOwnerBase &)=delete
 
SafeThreadOwnerBaseoperator= (const SafeThreadOwnerBase &)=delete
 
 SafeThreadOwnerBase (SafeThreadOwnerBase &&other) noexcept
 
SafeThreadOwnerBaseoperator= (SafeThreadOwnerBase &&other) noexcept
 
 ~SafeThreadOwnerBase ()
 
 operator bool () const
 
std::thread::native_handle_type GetNativeThreadHandle ()
 
void SetJoinAtExit (bool joinAtExit)
 

Additional Inherited Members

- Protected Member Functions inherited from wpi::detail::SafeThreadOwnerBase
void Start (std::shared_ptr< SafeThreadBase > thr)
 
std::shared_ptr< SafeThreadBaseGetThreadSharedPtr () const
 

Member Typedef Documentation

◆ Proxy

template<typename T >
using wpi::SafeThreadOwner< T >::Proxy = typename detail::SafeThreadProxy<T>

Member Function Documentation

◆ GetThread()

template<typename T >
Proxy wpi::SafeThreadOwner< T >::GetThread ( ) const
inline

◆ GetThreadSharedPtr()

template<typename T >
std::shared_ptr< T > wpi::SafeThreadOwner< T >::GetThreadSharedPtr ( ) const
inline

◆ Start()

template<typename T >
template<typename... Args>
void wpi::SafeThreadOwner< T >::Start ( Args &&...  args)
inline

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