WPILibC++ 2024.3.2
|
Simulation callback registry. More...
#include <hal/simulation/SimCallbackRegistry.h>
Public Member Functions | |
int32_t | Register (CallbackFunction callback, void *param) |
template<typename... U> | |
void | Invoke (U &&... u) const |
template<typename... U> | |
LLVM_ATTRIBUTE_ALWAYS_INLINE void | operator() (U &&... u) const |
Public Member Functions inherited from hal::impl::SimCallbackRegistryBase | |
void | Cancel (int32_t uid) |
void | Reset () |
wpi::recursive_spinlock & | GetMutex () |
Additional Inherited Members | |
Public Types inherited from hal::impl::SimCallbackRegistryBase | |
using | RawFunctor = void(*)() |
Protected Types inherited from hal::impl::SimCallbackRegistryBase | |
using | CallbackVector = wpi::UidVector< HalCallbackListener< RawFunctor >, 4 > |
Protected Member Functions inherited from hal::impl::SimCallbackRegistryBase | |
int32_t | DoRegister (RawFunctor callback, void *param) |
LLVM_ATTRIBUTE_ALWAYS_INLINE void | DoReset () |
Protected Attributes inherited from hal::impl::SimCallbackRegistryBase | |
wpi::recursive_spinlock | m_mutex |
std::unique_ptr< CallbackVector > | m_callbacks |
Simulation callback registry.
Provides callback functionality.
CallbackFunction | callback function type (e.g. HAL_BufferCallback) |
GetName | function that returns a const char* for the name |
|
inline |
|
inline |
|
inline |