SCRIPT namespace replacements

This commit is contained in:
PJ Reiniger
2025-11-07 20:00:05 -05:00
committed by Peter Johnson
parent ae6c043632
commit 9aca8e0fd6
2622 changed files with 22275 additions and 22275 deletions

View File

@@ -5,22 +5,22 @@
#include "wpi/cs/cscore_runloop.hpp"
#include "wpi/util/Synchronization.h"
static wpi::Event& GetInstance() {
static wpi::Event event;
static wpi::util::Event& GetInstance() {
static wpi::util::Event event;
return event;
}
namespace cs {
namespace wpi::cs {
void RunMainRunLoop() {
wpi::Event& event = GetInstance();
wpi::WaitForObject(event.GetHandle());
wpi::util::Event& event = GetInstance();
wpi::util::WaitForObject(event.GetHandle());
}
int RunMainRunLoopTimeout(double timeout) {
wpi::Event& event = GetInstance();
wpi::util::Event& event = GetInstance();
bool timedOut = false;
bool signaled = wpi::WaitForObject(event.GetHandle(), timeout, &timedOut);
bool signaled = wpi::util::WaitForObject(event.GetHandle(), timeout, &timedOut);
if (timedOut) {
return 3;
}
@@ -31,8 +31,8 @@ int RunMainRunLoopTimeout(double timeout) {
}
void StopMainRunLoop() {
wpi::Event& event = GetInstance();
wpi::util::Event& event = GetInstance();
event.Set();
}
} // namespace cs
} // namespace wpi::cs