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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user