HomePhabricator

tsan: use pthread_equal instead of direct pthread_t comparison

Authored by dvyukov on Nov 15 2021, 10:44 AM.

Description

tsan: use pthread_equal instead of direct pthread_t comparison

man pthread_equal:

The pthread_equal() function is necessary because thread IDs
should be considered opaque: there is no portable way for
applications to directly compare two pthread_t values.

Depends on D113916.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D113919

Details

Committed
dvyukovNov 15 2021, 10:51 PM
Reviewer
vitalybuka
Differential Revision
D113919: tsan: use pthread_equal instead of direct pthread_t comparison
Parents
rG64b45399e5c5: tsan: speed up pthread_setname_np
Branches
Unknown
Tags
Unknown