[asterisk-bugs] [JIRA] (ASTERISK-25355) sched: ast_sched_del may return prematurely due to spurious wakeup

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:22:01 CDT 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-25355:
-------------------------------------

    Target Release Version/s: 14.0.0

> sched: ast_sched_del may return prematurely due to spurious wakeup
> ------------------------------------------------------------------
>
>                 Key: ASTERISK-25355
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25355
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>            Reporter: Joshua Colp
>            Assignee: Joshua Colp
>            Severity: Minor
>      Target Release: 13.6.0, 14.0.0
>
>
> When deleting a scheduled item if the item in question is currently executing the ast_sched_del function waits until it has completed. This is accomplished using ast_cond_wait. Unfortunately the ast_cond_wait function can suffer from spurious wakeups so the predicate needs to be checked after it returns to make sure it has really woken up as a result of being signaled.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list