diff options
author | hasso <hasso> | 2004-02-11 20:26:31 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-02-11 20:26:31 +0000 |
commit | 381d3cb35fa1e51bfbd2a25e2a2240d152e859f4 (patch) | |
tree | 2b46db7d8807bf87df01710eac3621fe8292f41a /isisd/isisd.c | |
parent | 7e4955eeb79d52755b686a1a7cb07474cb04c4e6 (diff) | |
download | quagga-381d3cb35fa1e51bfbd2a25e2a2240d152e859f4.tar.bz2 quagga-381d3cb35fa1e51bfbd2a25e2a2240d152e859f4.tar.xz |
Threads usage cleanup. Still at least one bug to go.
Diffstat (limited to 'isisd/isisd.c')
-rw-r--r-- | isisd/isisd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c index 135acf0e..9cdb2557 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -120,7 +120,7 @@ isis_area_create () #endif /* HAVE_IPV6 */ area->circuit_list = list_new (); area->area_addrs = list_new (); - area->t_tick = thread_add_timer (master, lsp_tick, area, 1); + THREAD_TIMER_ON(master, area->t_tick, lsp_tick, area, 1); area->flags.maxindex = -1; /* * Default values @@ -210,14 +210,11 @@ isis_area_destroy (struct vty *vty, char *area_tag) list_delete (area->circuit_list); } listnode_delete (isis->area_list, area); - if (area->t_tick) - thread_cancel (area->t_tick); + THREAD_TIMER_OFF(area->t_tick); if (area->t_remove_aged) thread_cancel (area->t_remove_aged); - if (area->t_lsp_refresh[0]) - thread_cancel (area->t_lsp_refresh[0]); - if (area->t_lsp_refresh[1]) - thread_cancel (area->t_lsp_refresh[1]); + THREAD_TIMER_OFF(area->t_lsp_refresh[0]); + THREAD_TIMER_OFF(area->t_lsp_refresh[1]); XFREE (MTYPE_ISIS_AREA, area); |