This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Fix detached threads in unit tests on OS X
ClosedPublic

Authored by kubamracek on Nov 19 2015, 11:52 AM.

Details

Summary

We need to call the intercepted version of pthread_detach. Secondly, PTHREAD_CREATE_JOINABLE and PTHREAD_CREATE_DETACHED are not 0 and 1 on OS X, so we need to properly pass these constants and not just a bool.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek retitled this revision from to [tsan] Fix detached threads in unit tests on OS X.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, kcc, glider, samsonov.
dvyukov accepted this revision.Nov 20 2015, 11:16 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 20 2015, 11:16 AM
This revision was automatically updated to reflect the committed changes.