1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (c) 2002 Cray Inc.
5 * Copyright (c) 2002 Eric Hoffman
7 * This file is part of Portals, http://www.sf.net/projects/sandiaportals/
10 /* TODO: make this an explicit type when they become available */
11 typedef unsigned long long when;
13 typedef struct timer {
14 void (*function)(void *);
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);
28 #define HZ 0x100000000ull