esp-idf
esp-idf copied to clipboard
pthread_rwlock_timedwrlock is not implemented and will always fail (IDFGH-15461)
Answers checklist.
- [x] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [x] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [x] I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
release/v5.5
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
No warning.
What is the actual behavior?
When I use std::shared_timed_mutex, the compile will show the message "warning: pthread_rwlock_timedwrlock is not implemented and will always fail".
Steps to reproduce.
- use std::shared_timed_mutex
- idf.py build ...
Build or installation Logs.
Diagnostic report archive.
No response
More Information.
No response
Hi @keyflux! Thank you for the report. The current status of POSIX Threads support. Yes, the pthread_rwlock_timedwrlock() is not supported now. We will consider adding this API as well. FYI, The pthread APIs are implemented here - https://github.com/espressif/esp-idf/blob/master/components/pthread/pthread_rwlock.c