KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The pthread_mutex_timedlock documentation says that abs_timeout takes a CLOCK_REALTIME . However, we all know that it is inappropriate for timing a specific duration (due to system time adjustments). Is there a way to make pthread lock timeout on CLOCK_MONOTONIC that is portable? The same goes with pthread_cond_timedwait.
Tags (comma-separated)
Save Edits
Cancel