This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Add interceptor for pthread_cond_timedwait_relative_np
ClosedPublic

Authored by kubamracek on Mar 15 2016, 7:01 AM.

Details

Summary

On OS X, we have pthread_cond_timedwait_relative_np. TSan needs to intercept this API to avoid false positives when using condition variables.

Diff Detail

Event Timeline

kubamracek updated this revision to Diff 50726.Mar 15 2016, 7:01 AM
kubamracek retitled this revision from to [tsan] Add interceptor for pthread_cond_timedwait_relative_np.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, samsonov, glider, kcc.
dvyukov added inline comments.Mar 15 2016, 7:31 AM
lib/tsan/rtl/tsan_interceptors.cc
1104

Can this be a function instead of a macro?

kubamracek updated this revision to Diff 50733.Mar 15 2016, 7:43 AM

Changing the macro into a static function.

dvyukov accepted this revision.Mar 15 2016, 7:59 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Mar 15 2016, 7:59 AM
This revision was automatically updated to reflect the committed changes.