Spinscale: create new namespace sscl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user