From 03b23b504f32cf233d94baad243da62dd385a8af Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 29 Oct 2013 16:05:23 -0700 Subject: [PATCH] reference global with colon --- libraries/shared/src/NodeList.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/shared/src/NodeList.cpp b/libraries/shared/src/NodeList.cpp index 3657830201..3bf6813465 100644 --- a/libraries/shared/src/NodeList.cpp +++ b/libraries/shared/src/NodeList.cpp @@ -767,7 +767,7 @@ void* removeSilentNodes(void *args) { uint64_t checkTimeUsecs = 0; int sleepTime = 0; - while (!silentNodeThreadStopFlag) { + while (!::silentNodeThreadStopFlag) { checkTimeUsecs = usecTimestampNow(); @@ -802,7 +802,7 @@ void* removeSilentNodes(void *args) { } void NodeList::startSilentNodeRemovalThread() { - if (!silentNodeThreadStopFlag) { + if (!::silentNodeThreadStopFlag) { pthread_create(&removeSilentNodesThread, NULL, removeSilentNodes, (void*) this); } else { qDebug("Refusing to start silent node removal thread from previously failed join.\n"); @@ -811,11 +811,11 @@ void NodeList::startSilentNodeRemovalThread() { } void NodeList::stopSilentNodeRemovalThread() { - silentNodeThreadStopFlag = true; + ::silentNodeThreadStopFlag = true; int joinResult = pthread_join(removeSilentNodesThread, NULL); if (joinResult == 0) { - silentNodeThreadStopFlag = false; + ::silentNodeThreadStopFlag = false; } else { qDebug("Silent node removal thread join failed with %d. Will not restart.\n", joinResult); }