diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-04 03:04:36 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 03:04:36 +0100 |
commit | 406aadbf8ec3605115ba9a83d4994c2b61d0f5b3 (patch) | |
tree | 5d51e649569435ffa45591edededeba58c9d4b9a /lib/thread.h | |
parent | 2d3b742ab0c15303e008cd83f15bea869107fab9 (diff) | |
parent | 6cf8c261d41624992f55b195aa52f8867c6833c7 (diff) | |
download | quagga-406aadbf8ec3605115ba9a83d4994c2b61d0f5b3.tar.bz2 quagga-406aadbf8ec3605115ba9a83d4994c2b61d0f5b3.tar.xz |
Merge remote branch 'qpimd/pim' into merged/pimd
Conflicts:
configure.ac
lib/zebra.h
vtysh/vtysh.c
Diffstat (limited to 'lib/thread.h')
-rw-r--r-- | lib/thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index b52bc541..f3769e25 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -1,5 +1,6 @@ /* Thread management routine header. * Copyright (C) 1998 Kunihiro Ishiguro + * Portions Copyright (c) 2008 Everton da Silva Marques <everton.marques@gmail.com> * * This file is part of GNU Zebra. * @@ -137,6 +138,12 @@ enum quagga_clkid { thread = thread_add_timer (master, func, arg, time); \ } while (0) +#define THREAD_TIMER_MSEC_ON(master,thread,func,arg,time) \ + do { \ + if (! thread) \ + thread = thread_add_timer_msec (master, func, arg, time); \ + } while (0) + #define THREAD_OFF(thread) \ do { \ if (thread) \ |