1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef OPAL_MCA_EVENT_H
15 #define OPAL_MCA_EVENT_H
16
17 #include "opal_config.h"
18
19 #ifdef HAVE_SYS_TYPES_H
20 #include <sys/types.h>
21 #endif
22 #ifdef HAVE_SYS_TIME_H
23 #include <sys/time.h>
24 #endif
25 #include <stdint.h>
26 #include <stdarg.h>
27
28 #include "opal/class/opal_pointer_array.h"
29
30 #include "opal/mca/mca.h"
31 #include "opal/mca/base/base.h"
32
33 BEGIN_C_DECLS
34
35
36 #define OPAL_EVENT_NUM_PRI 8
37
38 #define OPAL_EV_ERROR_PRI 0
39 #define OPAL_EV_MSG_HI_PRI 1
40 #define OPAL_EV_SYS_HI_PRI 2
41 #define OPAL_EV_MSG_LO_PRI 3
42 #define OPAL_EV_SYS_LO_PRI 4
43 #define OPAL_EV_INFO_HI_PRI 5
44 #define OPAL_EV_INFO_LO_PRI 6
45 #define OPAL_EV_LOWEST_PRI 7
46
47 #define OPAL_EVENT_SIGNAL(ev) opal_event_get_signal(ev)
48
49 #define OPAL_TIMEOUT_DEFAULT {1, 0}
50
51
52
53
54 struct opal_event_base_component_2_0_0_t {
55
56 mca_base_component_t base_version;
57
58 mca_base_component_data_t base_data;
59 };
60
61
62
63
64 typedef struct opal_event_base_component_2_0_0_t opal_event_base_component_2_0_0_t;
65 typedef struct opal_event_base_component_2_0_0_t opal_event_component_t;
66
67
68
69
70 #define OPAL_EVENT_BASE_VERSION_2_0_0 \
71 OPAL_MCA_BASE_VERSION_2_1_0("event", 2, 0, 0)
72
73 END_C_DECLS
74
75
76 #include MCA_event_IMPLEMENTATION_HEADER
77
78 #endif