FreeRTOS / Lab-Project-FreeRTOS-POSIX

This repository contains FreeRTOS+POSIX source code, which could be consumed as a submodule.
MIT License
95 stars 60 forks source link

Bug in posix porting layer of pthread_cond_broadcast/wait #8

Open alfred2g opened 3 years ago

alfred2g commented 3 years ago

If a high priority thread and a low priority thread are blocked in pthread_cond_wait(), the low priority thread will not be awakened,… instead the high priority thread checks it’s condition twice.

Bug reported in: https://forums.freertos.org/t/bug-in-posix-porting-layer-of-pthread-cond-broadcast-wait/10765