esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

pthread_rwlock_timedwrlock is not implemented and will always fail (IDFGH-15461)

Open keyflux opened this issue 7 months ago • 1 comments

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.

  1. use std::shared_timed_mutex
  2. idf.py build ...

Build or installation Logs.


Diagnostic report archive.

No response

More Information.

No response

keyflux avatar Jun 11 '25 11:06 keyflux

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

KonstantinKondrashov avatar Jun 11 '25 12:06 KonstantinKondrashov