Browse Source
pthread_cond_timedwait gives a timestamp as the timeout, but libctru expects a duration. After converting the timestamp to nanoseconds since epoch, we were telling libctru to sleep for over 52 years! This commit changes our impl to convert the timestamp to a duration. Additionally, CondVar_WaitTimeout returns a boolean indicating if it timed out or not. But pthread_cond_timedwait expects a libc-style error code. This conversion is added as well.pull/6/head
AzureMarker
3 years ago
1 changed files with 33 additions and 2 deletions
Loading…
Reference in new issue