提交 8247926a authored 作者: Michael Jerris's avatar Michael Jerris

Wed Jan 28 12:01:13 CST 2009 Pekka Pessi <first.last@nokia.com>

  * su_timer.c: timers_remove() now set sut_heap_index to 0



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11850 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b3256ae8
Wed Feb 11 11:14:50 CST 2009
Wed Feb 11 11:15:31 CST 2009
......@@ -225,7 +225,7 @@ su_timer_set0(su_timer_queue_t *timers,
return -1;
if (SU_TIMER_IS_SET(t))
timers_remove(timers[0], t->sut_heap_index)->sut_heap_index = 0;
timers_remove(timers[0], t->sut_heap_index);
t->sut_wakeup = wakeup;
t->sut_arg = arg;
......@@ -481,7 +481,7 @@ int su_timer_reset(su_timer_t *t)
return -1;
if (SU_TIMER_IS_SET(t))
timers_remove(timers[0], t->sut_heap_index)->sut_heap_index = 0;
timers_remove(timers[0], t->sut_heap_index);
t->sut_wakeup = NULL;
t->sut_arg = NULL;
......@@ -526,7 +526,7 @@ int su_timer_expire(su_timer_queue_t * const timers,
break;
}
timers_remove(timers[0], 1)->sut_heap_index = 0;
timers_remove(timers[0], 1);
f = t->sut_wakeup; t->sut_wakeup = NULL;
assert(f);
......@@ -609,7 +609,7 @@ int su_timer_reset_all(su_timer_queue_t *timers, su_task_r task)
if (su_task_cmp(task, t->sut_task))
continue;
timers_remove(timers[0], i)->sut_heap_index = 0;
timers_remove(timers[0], i);
su_free(NULL, t);
n++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论