mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
reference global with colon
This commit is contained in:
parent
66b27fa607
commit
03b23b504f
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue