_thr_ref_add
if (_thr_ref_add(curthread, thread, 0) == 0) {
if (_thr_ref_add(curthread, thread, 0) == 0) {
if ((ret = _thr_ref_add(curthread, pid, /*include dead*/0)) != 0)
if ((ret = _thr_ref_add(curthread, pthread, 0)) != 0) {
else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
if ((error = _thr_ref_add(curthread, thread, 0)) == 0) {
if ((error = _thr_ref_add(curthread, thread, 0)) == 0) {
if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
int _thr_ref_add(pthread_t, pthread_t, int);
if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) == 0) {
} else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0))