-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
pthread_rwlock_t implementation is missing try-lock functions (IDFGH-7685) #9229
Comments
They simply haven't been implemented. The original feature request came from the Rust-community who needed only the simple functionality. I'll take a look at the code within the next few days to see if the implementation would be easy. |
Thanks!
They are pretty easy to implement: instead of waiting on the condition variable, you would just unlock the resource mutex and return |
Has there been any progress on this? I think this functionality would be pretty neat to have. Speaking from a Rust perspective, it's actually required to make full use of the tracing ecosystem. |
I also encountered this problem. It would be nice to have this for the Rust ecosystem. |
The try-lock functions have been merged into master. Feel free to take a look. |
Looks like e7312cc is still not in any release. What's the policy here? What future release would this be contained in? |
Hi @svenstaro, it has been merged to master. This means it will go into the next release (v5.2), as well as all the following releases. |
ESP-IDF has recently added support for
pthread_rwlock_t
(32e3444), but strangely the try-lock functionspthread_wrlock_tryrdlock
andpthread_wrlock_trywrlock
are missing... I'm wondering why they have been omitted?The text was updated successfully, but these errors were encountered: