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) {
47 wpi::SetEvent(handle);
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
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18
::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