22 std::scoped_lock lock{
mutex};
32 std::scoped_lock lock{
mutex};
33 auto it = std::find_if(
35 [=](
const WPI_EventHandle fromHandle) { return fromHandle == handle; });
45 std::scoped_lock lock{
mutex};
46 for (
auto&& handle :
events) {
This file defines the SmallVector class.
WPI_Handle WPI_EventHandle
An event handle.
Definition Synchronization.h:25
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition SmallVector.h:1212
iterator erase(const_iterator CI)
Definition SmallVector.h:753
reference emplace_back(ArgTypes &&... Args)
Definition SmallVector.h:953
iterator begin()
Definition SmallVector.h:283
iterator end()
Definition SmallVector.h:285
Foonathan namespace.
Definition ntcore_cpp.h:26
void SetEvent(WPI_EventHandle handle)
Sets an event to signaled state.
::std::mutex mutex
Definition mutex.h:17
Definition EventVector.h:12
void Wakeup()
Wakes up all events in the event vector.
Definition EventVector.h:44
wpi::mutex mutex
Definition EventVector.h:13
wpi::SmallVector< WPI_EventHandle, 4 > events
Definition EventVector.h:14
void Add(WPI_EventHandle handle)
Adds an event to the event vector.
Definition EventVector.h:21
void Remove(WPI_EventHandle handle)
Removes an event from the event vector.
Definition EventVector.h:31