[wpilib] Use misspell to find more spelling errors (NFC) (#2679)

This commit is contained in:
sciencewhiz
2020-09-02 19:41:05 -07:00
committed by GitHub
parent 6a1e5385e5
commit f758af826d
20 changed files with 47 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -83,7 +83,7 @@ class CallbackThread : public wpi::SafeThread {
wpi::mutex poll_mutex;
wpi::condition_variable poll_cond;
bool terminating = false;
bool cancelling = false;
bool canceling = false;
};
wpi::UidVector<std::shared_ptr<Poller>, 64> m_pollers;
@@ -247,10 +247,10 @@ class CallbackManager {
*timed_out = false;
while (poller->poll_queue.empty()) {
if (poller->terminating) return infos;
if (poller->cancelling) {
if (poller->canceling) {
// Note: this only works if there's a single thread calling this
// function for any particular poller, but that's the intended use.
poller->cancelling = false;
poller->canceling = false;
return infos;
}
if (timeout == 0) {
@@ -287,7 +287,7 @@ class CallbackManager {
{
std::scoped_lock lock(poller->poll_mutex);
poller->cancelling = true;
poller->canceling = true;
}
poller->poll_cond.notify_one();
}