[PATCH] D54521: tsan: Add pthread_tryjoin_np and pthread_timedjoin_np interceptors
Dmitry Vyukov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 15 09:45:27 PST 2018
dvyukov added inline comments.
================
Comment at: lib/tsan/rtl/tsan_interceptors.cc:1054
+ ThreadIgnoreEnd(thr, pc);
+ if (res == 0) {
+ ThreadJoin(thr, pc, tid);
----------------
dvyukov wrote:
> Please remove {}
> tsan codebase does not use {} around single-statement if/for.
OK, I see somebody did this for pthread_join too. Then you can leave this is as for consistency.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D54521
More information about the llvm-commits
mailing list