[asterisk-bugs] [JIRA] (ASTERISK-25355) sched: ast_sched_del may return prematurely due to spurious wakeup
Joshua Colp (JIRA)
noreply at issues.asterisk.org
Fri Aug 28 19:58:33 CDT 2015
Joshua Colp created ASTERISK-25355:
--------------------------------------
Summary: 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
Reporter: Joshua Colp
Severity: Minor
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