-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle error from pthread_cond_wait() #1574
Comments
This is the excerpt from the manpage for pthread_cond_wait (cut off parts that refer to
Every error in this list concerns exclusively the "robust mutex", which isn't the default type of the mutex and must be set so explicitly, nor do we use such kind of mutex in the POSIX wrapper. It's not explicitly described by
In result, every error in the list may only be reported in case of using a robust mutex associated with the condition here. Which means that in the current implementation It might be a good idea to implement robust mutexes as a special "robust mode" enabled at compile time to try to reproduce any thread errors - such mutexes are armed in extra bug tracing abilities, such as report error when trying to lock a mutex that a dying thread has left locked. But that's for another activity. |
Closing as nothing to do according to the analysis by @ethouris:
|
pthread_cond_wait()
can report an error. The wrapper ignores it. Throw an exception similar to C++11condition_variable
. See this comment: link.Extracted from #1103.
The text was updated successfully, but these errors were encountered: