WPILibC++ 2024.3.2
hal::impl::SimCallbackRegistryBase Class Reference

#include <hal/simulation/SimCallbackRegistry.h>

Inheritance diagram for hal::impl::SimCallbackRegistryBase:
hal::SimCallbackRegistry< CallbackFunction, GetName > hal::impl::SimDataValueBase< T, MakeValue > hal::SimDataValue< T, MakeValue, GetName, GetDefault >

Public Types

using RawFunctor = void(*)()
 

Public Member Functions

void Cancel (int32_t uid)
 
void Reset ()
 
wpi::recursive_spinlockGetMutex ()
 

Protected Types

using CallbackVector = wpi::UidVector< HalCallbackListener< RawFunctor >, 4 >
 

Protected Member Functions

int32_t DoRegister (RawFunctor callback, void *param)
 
LLVM_ATTRIBUTE_ALWAYS_INLINE void DoReset ()
 

Protected Attributes

wpi::recursive_spinlock m_mutex
 
std::unique_ptr< CallbackVectorm_callbacks
 

Member Typedef Documentation

◆ CallbackVector

◆ RawFunctor

Member Function Documentation

◆ Cancel()

void hal::impl::SimCallbackRegistryBase::Cancel ( int32_t  uid)
inline

◆ DoRegister()

int32_t hal::impl::SimCallbackRegistryBase::DoRegister ( RawFunctor  callback,
void *  param 
)
inlineprotected

◆ DoReset()

LLVM_ATTRIBUTE_ALWAYS_INLINE void hal::impl::SimCallbackRegistryBase::DoReset ( )
inlineprotected

◆ GetMutex()

wpi::recursive_spinlock & hal::impl::SimCallbackRegistryBase::GetMutex ( )
inline

◆ Reset()

void hal::impl::SimCallbackRegistryBase::Reset ( )
inline

Member Data Documentation

◆ m_callbacks

std::unique_ptr<CallbackVector> hal::impl::SimCallbackRegistryBase::m_callbacks
protected

◆ m_mutex

wpi::recursive_spinlock hal::impl::SimCallbackRegistryBase::m_mutex
mutableprotected

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