mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +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;
|
uint64_t checkTimeUsecs = 0;
|
||||||
int sleepTime = 0;
|
int sleepTime = 0;
|
||||||
|
|
||||||
while (!silentNodeThreadStopFlag) {
|
while (!::silentNodeThreadStopFlag) {
|
||||||
|
|
||||||
checkTimeUsecs = usecTimestampNow();
|
checkTimeUsecs = usecTimestampNow();
|
||||||
|
|
||||||
|
@ -802,7 +802,7 @@ void* removeSilentNodes(void *args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeList::startSilentNodeRemovalThread() {
|
void NodeList::startSilentNodeRemovalThread() {
|
||||||
if (!silentNodeThreadStopFlag) {
|
if (!::silentNodeThreadStopFlag) {
|
||||||
pthread_create(&removeSilentNodesThread, NULL, removeSilentNodes, (void*) this);
|
pthread_create(&removeSilentNodesThread, NULL, removeSilentNodes, (void*) this);
|
||||||
} else {
|
} else {
|
||||||
qDebug("Refusing to start silent node removal thread from previously failed join.\n");
|
qDebug("Refusing to start silent node removal thread from previously failed join.\n");
|
||||||
|
@ -811,11 +811,11 @@ void NodeList::startSilentNodeRemovalThread() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeList::stopSilentNodeRemovalThread() {
|
void NodeList::stopSilentNodeRemovalThread() {
|
||||||
silentNodeThreadStopFlag = true;
|
::silentNodeThreadStopFlag = true;
|
||||||
int joinResult = pthread_join(removeSilentNodesThread, NULL);
|
int joinResult = pthread_join(removeSilentNodesThread, NULL);
|
||||||
|
|
||||||
if (joinResult == 0) {
|
if (joinResult == 0) {
|
||||||
silentNodeThreadStopFlag = false;
|
::silentNodeThreadStopFlag = false;
|
||||||
} else {
|
} else {
|
||||||
qDebug("Silent node removal thread join failed with %d. Will not restart.\n", joinResult);
|
qDebug("Silent node removal thread join failed with %d. Will not restart.\n", joinResult);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue