[asterisk-commits] russell: branch russell/sched_thread2 r171447 - /team/russell/sched_thread2/m...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 26 14:33:52 CST 2009
Author: russell
Date: Mon Jan 26 14:33:52 2009
New Revision: 171447
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=171447
Log:
Use sched_thread_poke() in some places where the operation was open coded
Modified:
team/russell/sched_thread2/main/sched.c
Modified: team/russell/sched_thread2/main/sched.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/sched_thread2/main/sched.c?view=diff&rev=171447&r1=171446&r2=171447
==============================================================================
--- team/russell/sched_thread2/main/sched.c (original)
+++ team/russell/sched_thread2/main/sched.c Mon Jan 26 14:33:52 2009
@@ -191,9 +191,7 @@
res = ast_sched_add_variable(st->context, when, cb, data, variable);
if (res != -1) {
- ast_mutex_lock(&st->lock);
- ast_cond_signal(&st->cond);
- ast_mutex_unlock(&st->lock);
+ ast_sched_thread_poke(st);
}
return res;
@@ -207,9 +205,7 @@
res = ast_sched_add(st->context, when, cb, data);
if (res != -1) {
- ast_mutex_lock(&st->lock);
- ast_cond_signal(&st->cond);
- ast_mutex_unlock(&st->lock);
+ ast_sched_thread_poke(st);
}
return res;
More information about the asterisk-commits
mailing list