summaryrefslogtreecommitdiffstats
path: root/isisd/isisd.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-02-11 20:26:31 +0000
committerhasso <hasso>2004-02-11 20:26:31 +0000
commitd70f99e15b7849f59b970bd62392ed42bda25ab6 (patch)
treeed59bcf87fa39e18ef82e21ae59fa9e842622a67 /isisd/isisd.c
parent83fe45e30e12eb8af8b7cc413e1ae5ef81bde97e (diff)
downloadquagga-d70f99e15b7849f59b970bd62392ed42bda25ab6.tar.bz2
quagga-d70f99e15b7849f59b970bd62392ed42bda25ab6.tar.xz
Threads usage cleanup. Still at least one bug to go.
Diffstat (limited to 'isisd/isisd.c')
-rw-r--r--isisd/isisd.c11
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);