sched: make sure scheduler parameter change handler is first

This is needed to allow other handlers to add new timers.
This commit is contained in:
Miroslav Lichvar
2014-08-19 11:45:30 +02:00
parent 58b211d707
commit 0bdac2c7b3
3 changed files with 15 additions and 0 deletions

View File

@@ -252,6 +252,14 @@ void LCL_RemoveParameterChangeHandler(LCL_ParameterChangeHandler handler, void *
/* ================================================== */
int
LCL_IsFirstParameterChangeHandler(LCL_ParameterChangeHandler handler)
{
return change_list.next->handler == handler;
}
/* ================================================== */
static void
invoke_parameter_change_handlers(struct timeval *raw, struct timeval *cooked,
double dfreq, double doffset,