Skip to content

Commit 723ab96

Browse files
Fix assertion builds on OSX as well.
There was a lingering assertion failure caused by some improper initialization.
1 parent e1555ef commit 723ab96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/qt_atomics.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static inline int QTHREAD_TRYLOCK_TRY(qt_spin_trylock_t *x) {
161161
} \
162162
{ \
163163
pthread_condattr_t tmp_attr; \
164+
pthread_condattr_init(&tmp_attr); \
164165
qassert(pthread_condattr_setpshared(&tmp_attr, PTHREAD_PROCESS_PRIVATE), \
165166
0); \
166167
QTHREAD_SET_CONDATTR_CLOCK(tmp_attr); \

0 commit comments

Comments
 (0)