close epoll_fd in timer_deinit() function
Signed-off-by: AaronKonishi <konishi5202@163.com> Changes to be committed: modified: source/mt_timer.cmaster
parent
f6286f4885
commit
6c8d47b9bb
|
|
@ -64,6 +64,8 @@ void timer_deinit(MT_TIMER_OBJECT *object)
|
||||||
timer_add(object, &itimespec, 0, NULL, NULL, NULL);
|
timer_add(object, &itimespec, 0, NULL, NULL, NULL);
|
||||||
pthread_join(object->timer_thread_id, NULL);
|
pthread_join(object->timer_thread_id, NULL);
|
||||||
timer_clear(object);
|
timer_clear(object);
|
||||||
|
close(object->timer_epoll_fd);
|
||||||
|
object->timer_epoll_fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int timer_add(MT_TIMER_OBJECT *object, struct itimerspec *itimespec,
|
int timer_add(MT_TIMER_OBJECT *object, struct itimerspec *itimespec,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue