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:727
reference emplace_back(ArgTypes &&... Args)
Definition: SmallVector.h:930
iterator begin()
Definition: SmallVector.h:252
iterator end()
Definition: SmallVector.h:254
Definition: AprilTagFieldLayout.h:18
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