fixed bug in events_timer.c, events_timer_thr.c

This commit is contained in:
zhengshuxin 2020-08-13 11:52:16 +08:00
parent 0f5ee564a9
commit a86ca6dab0
3 changed files with 6 additions and 1 deletions

View File

@ -68,6 +68,7 @@ acl_int64 event_timer_request(ACL_EVENT *eventp, ACL_EVENT_NOTIFY_TIME callback,
timer->nrefer = 1;
timer->ncount = 0;
timer->keep = keep;
acl_ring_init(&timer->tmp);
}
/*

View File

@ -68,6 +68,7 @@ acl_int64 event_timer_request_thr(ACL_EVENT *eventp,
timer->callback = callback;
timer->context = context;
timer->event_type = ACL_EVENT_TIME;
acl_ring_init(&timer->tmp);
}
/*

View File

@ -1,4 +1,4 @@
%define release_id 7
%define release_id 8
Summary: The powerful c/c++ library
Name: acl-libs
@ -46,6 +46,9 @@ rm -rf %{buildroot}
%changelog
* Thu Aug 13 2020 shuxin.zheng@qq.com 3.5.1-8-20200813.11
- fixed bug in events_timer.c/events_timer_thr.c
* Tue Aug 11 2020 shuxin.zheng@qq.com 3.5.1-7-20200811.17
- fixed one important bug in event_timer.c/event_timer_thr.c: when one timer
cancel another timer, if the other timer has been in schedule queue, the