Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lnet / ulnds / socklnd / timer.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (c) 2002 Cray Inc.
5  *  Copyright (c) 2002 Eric Hoffman
6  *
7  *   This file is part of Portals, http://www.sf.net/projects/sandiaportals/
8  */
9
10 /* TODO: make this an explicit type when they become available */
11 typedef unsigned long long when;
12
13 typedef struct timer {
14   void (*function)(void *);
15   void *arg;
16   when w;
17   int interval;
18   int disable;
19 } *timer;
20
21 timer register_timer(when, void (*f)(void *), void *a);
22 void remove_timer(timer t);
23 void timer_loop(void);
24 void initialize_timer(void);
25 void register_thunk(void (*f)(void *),void *a);
26
27
28 #define HZ 0x100000000ull
29
30