feat (pthread): reader-writer locks implementation

* Added implementation based on cond. variables
* Added unit tests

Closes https://github.com/espressif/esp-idf/issues/7411
This commit is contained in:
Jakob Hasse
2021-08-27 13:00:10 +08:00
parent cd97e95a12
commit b117bcd2a0
6 changed files with 586 additions and 24 deletions

View File

@@ -17,3 +17,6 @@ endif
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_impl
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_cond_impl
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_local_storage_impl
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_rwlock_impl
CFLAGS += -D_POSIX_READER_WRITER_LOCKS