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 /* this file is only called dispatch.h to prevent it
11 from colliding with /usr/include/sys/select.h */
13 typedef struct io_handler *io_handler;
20 int (*function)(void *);
26 #define READ_HANDLER 1
27 #define WRITE_HANDLER 2
28 #define EXCEPTION_HANDLER 4
29 #define ALL_HANDLER (READ_HANDLER | WRITE_HANDLER | EXCEPTION_HANDLER)
31 io_handler register_io_handler(int fd,
33 int (*function)(void *),
36 void remove_io_handler (io_handler i);
37 void init_unix_timer(void);
38 void select_timer_block(when until);
42 * hacking for CFS internal MPI testing
45 #define ENABLE_SELECT_DISPATCH