Skip to content

Commit 181cf97

Browse files
Put another line in ifdef
1 parent 4d5422e commit 181cf97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RTXOff/ThreadDispatcher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ThreadDispatcher::ThreadDispatcher()
5555
pthread_mutexattr_destroy(&recursiveAttr);
5656

5757
#ifdef USE_MAC_TIME
58-
pthread_cond_init(&kernelModeCondVar, nullptr);
58+
pthread_cond_init(&kernelModeCondVar, nullptr);
5959
#else
6060
// initialize kernel mode cond var
6161
// make sure that the condition variable is using the monotonic clock
@@ -64,9 +64,9 @@ ThreadDispatcher::ThreadDispatcher()
6464
pthread_condattr_setclock(&monotonicClockAttr, CLOCK_MONOTONIC); // sadly CLOCK_PROCESS_CPUTIME_ID is not supported here
6565

6666
pthread_cond_init(&kernelModeCondVar, &monotonicClockAttr);
67-
#endif
6867

6968
pthread_condattr_destroy(&monotonicClockAttr);
69+
#endif
7070
}
7171

7272
void ThreadDispatcher::lockMutex()

0 commit comments

Comments
 (0)