[NFC][sanitizer] Check &real_pthread_join

It's a weak function which may be undefined.
This commit is contained in:
Vitaly Buka 2021-12-01 23:55:04 -08:00
parent fb9fc3c951
commit 8aabde5a4b
1 changed files with 2 additions and 1 deletions

View File

@ -1770,7 +1770,8 @@ void *internal_start_thread(void *(*func)(void *arg), void *arg) {
}
void internal_join_thread(void *th) {
real_pthread_join(th, nullptr);
if (&real_pthread_join)
real_pthread_join(th, nullptr);
}
#else
void *internal_start_thread(void *(*func)(void *), void *arg) { return 0; }