Fix IRQ handling and improve cancellation implementation

This commit is contained in:
NIIBE Yutaka
2016-05-16 14:50:04 +09:00
parent a82acac8df
commit b7c6dadcfb
5 changed files with 115 additions and 78 deletions

5
NEWS
View File

@@ -7,10 +7,11 @@ NEWS - Noteworthy changes
** New feature: polling
New function chopstx_poll is added to watch multiple condition
variables, threads' exit, or IRQ simultaneously with timeout.
variables, threads' exit, or IRQ, simultaneously with timeout.
** Remove the function chopstx_release_irq
Releasing irq is now called automaticall, internally.
IRQ is enabled only a thread is blocked in polling. When it (the
thread in polling) is canceled, IRQ is disabled.
** Function chopstx_intr_wait is deprecated
Use of chopstx_poll is recommended.