Lines Matching refs:th
817 void *th, void *attr, void *(*callback)(void*), void * param) {
818 SCOPED_TSAN_INTERCEPTOR(pthread_create, th, attr, callback, param);
838 int res = REAL(pthread_create)(th, attr, __tsan_thread_start_func, &p);
840 int tid = ThreadCreate(thr, pc, *(uptr*)th, detached);
851 TSAN_INTERCEPTOR(int, pthread_join, void *th, void **ret) {
852 SCOPED_TSAN_INTERCEPTOR(pthread_join, th, ret);
853 int tid = ThreadTid(thr, pc, (uptr)th);
854 int res = BLOCK_REAL(pthread_join)(th, ret);
861 TSAN_INTERCEPTOR(int, pthread_detach, void *th) {
862 SCOPED_TSAN_INTERCEPTOR(pthread_detach, th);
863 int tid = ThreadTid(thr, pc, (uptr)th);
864 int res = REAL(pthread_detach)(th);
2093 void *th;
2094 REAL(pthread_create)(&th, 0, (void*(*)(void *arg))func, arg);
2095 REAL(pthread_detach)(th);