PTHREAD_CREATE_DETACHED has a different value on Mac OS X. Since both
PTHREAD_CREATE_JOINABLE and PTHREAD_CREATE_DETACHED are non-zero,
__tsan::ThreadCreate always creates detached threads.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
+dvyukov
LGTM
lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
42 | I don't think you need the definition of PTHREAD_CREATE_JOINABLE, since nobody's using it. |
I don't think you need the definition of PTHREAD_CREATE_JOINABLE, since nobody's using it.