diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-04 03:41:06 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 03:41:06 +0100 |
commit | 447a9a8dbde95fc6ce92691491ac193f0199e2cd (patch) | |
tree | 4bfce47ead136e60cc91df50c3e79e75ddd4c83d /lib/thread.h | |
parent | 08e2c2ee9044a14f2cd9d382eec8f96189520160 (diff) | |
parent | 168595ff42c4046167b0fbae2770c037c854abd0 (diff) | |
download | quagga-447a9a8dbde95fc6ce92691491ac193f0199e2cd.tar.bz2 quagga-447a9a8dbde95fc6ce92691491ac193f0199e2cd.tar.xz |
Merge branch 'merged/pimd' into dn42
Conflicts:
lib/route_types.txt
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 a6aed173..c0198a36 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. * @@ -136,6 +137,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) \ |