![]() |
WPILibC++ 2027.0.0-alpha-4
|
Simulation callback registry. More...
#include <wpi/hal/simulation/SimCallbackRegistry.hpp>
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 wpi::hal::impl::SimCallbackRegistryBase | |
| void | Cancel (int32_t uid) |
| void | Reset () |
| wpi::util::recursive_spinlock & | GetMutex () |
Additional Inherited Members | |
| Public Types inherited from wpi::hal::impl::SimCallbackRegistryBase | |
| using | RawFunctor = void (*)() |
| Protected Types inherited from wpi::hal::impl::SimCallbackRegistryBase | |
| using | CallbackVector |
| Protected Member Functions inherited from wpi::hal::impl::SimCallbackRegistryBase | |
| int32_t | DoRegister (RawFunctor callback, void *param) |
| LLVM_ATTRIBUTE_ALWAYS_INLINE void | DoReset () |
| Protected Attributes inherited from wpi::hal::impl::SimCallbackRegistryBase | |
| wpi::util::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 |