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
iterator erase(const_iterator CI)
Definition: SmallVector.h:743
reference emplace_back(ArgTypes &&... Args)
Definition: SmallVector.h:943
iterator begin()
Definition: SmallVector.h:272
iterator end()
Definition: SmallVector.h:274
Definition: ntcore_cpp.h:26
void SetEvent(WPI_EventHandle handle)
Sets an event to signaled state.
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
::std::mutex mutex
Definition: mutex.h:17