fix pthread library issues: (#522)

1. pthread_join can't get return value from exited threads
2. pthread_cond_wait return success when timeout
This commit is contained in:
Xu Jun
2021-02-09 10:36:44 +08:00
committed by GitHub
parent 1630cb2524
commit 52f422dba0
2 changed files with 58 additions and 23 deletions

View File

@ -214,7 +214,7 @@ int os_cond_reltimedwait(korp_cond *cond, korp_mutex *mutex, uint64 useconds)
if (ret != BHT_OK && ret != ETIMEDOUT)
return BHT_ERROR;
return BHT_OK;
return ret;
}
int os_cond_signal(korp_cond *cond)