Spinscale: create new namespace sscl

This commit is contained in:
2025-12-27 16:21:22 -04:00
parent 0c4f427c0a
commit 34d76df7d9
67 changed files with 434 additions and 429 deletions
+4 -4
View File
@@ -9,7 +9,7 @@
namespace smo {
namespace device {
static void reattachmentCb(AsynchronousLoop& results)
static void reattachmentCb(sscl::AsynchronousLoop& results)
{
if (results.nTotal == 0) { return; }
@@ -19,7 +19,7 @@ static void reattachmentCb(AsynchronousLoop& results)
}
DeviceReattacher::DeviceReattacher(
DeviceManager& parent, std::shared_ptr<ComponentThread> ioThread)
DeviceManager& parent, std::shared_ptr<sscl::ComponentThread> ioThread)
: parent(parent), ioThread(ioThread), shouldContinue(false),
timer(ioThread->getIoService())
{
@@ -34,7 +34,7 @@ void DeviceReattacher::start()
void DeviceReattacher::stop()
{
{
SpinLock::Guard lock(shouldContinueLock);
sscl::SpinLock::Guard lock(shouldContinueLock);
shouldContinue = false;
}
@@ -70,7 +70,7 @@ void DeviceReattacher::onTimeout(const boost::system::error_code& error)
return;
}
SpinLock::Guard lock(shouldContinueLock);
sscl::SpinLock::Guard lock(shouldContinueLock);
if (!shouldContinue) {
return;
}