| Summary: | sem_post does not properly wake waiting thread | ||
|---|---|---|---|
| Product: | uClibc | Reporter: | Jeff Hansen <bb> |
| Component: | Threads | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | normal | CC: | uclibc-cvs |
| Priority: | P5 | ||
| Version: | 0.9.34 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | Proof of bug | ||
Created attachment 5186 [details] Proof of bug In the attached example (without USE_FUTEX defined), the "^^ got in" text does not ever print out as expected, on x86 and MIPS architectures. This is very problematic in applications post them immediately wait, where other threads need to be allowed a sliver of time in between. If you use raw Linux futex syscalls, Linux properly wakes up the last waiting thread so that "^^ got in" prints out, as shown by defining the USE_FUTEX macro.