version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2012/10/09 09:22:28
|
Line 1
|
Line 1
|
/* Thread management routine header. |
/* Thread management routine header. |
* Copyright (C) 1998 Kunihiro Ishiguro |
* Copyright (C) 1998 Kunihiro Ishiguro |
|
* Portions Copyright (c) 2008 Everton da Silva Marques <everton.marques@gmail.com> |
* |
* |
* This file is part of GNU Zebra. |
* This file is part of GNU Zebra. |
* |
* |
Line 22
|
Line 23
|
#ifndef _ZEBRA_THREAD_H |
#ifndef _ZEBRA_THREAD_H |
#define _ZEBRA_THREAD_H |
#define _ZEBRA_THREAD_H |
|
|
|
#include <zebra.h> |
|
|
struct rusage_t |
struct rusage_t |
{ |
{ |
#ifdef HAVE_RUSAGE |
#ifdef HAVE_RUSAGE |
Line 135 enum quagga_clkid {
|
Line 138 enum quagga_clkid {
|
do { \ |
do { \ |
if (! thread) \ |
if (! thread) \ |
thread = thread_add_timer (master, func, arg, time); \ |
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) |
} while (0) |
|
|
#define THREAD_OFF(thread) \ |
#define THREAD_OFF(thread) \ |