This source file includes following definitions.
- orte_errmgr_base_close
- orte_errmgr_base_open
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 #include "orte_config.h"
27 #include "orte/constants.h"
28
29 #include <string.h>
30 #ifdef HAVE_UNISTD_H
31 #include <unistd.h>
32 #endif
33 #ifdef HAVE_SYS_TYPES_H
34 #include <sys/types.h>
35 #endif
36
37 #include "orte/mca/mca.h"
38 #include "opal/mca/base/base.h"
39
40 #include "opal/util/opal_environ.h"
41 #include "opal/util/output.h"
42
43 #include "orte/util/show_help.h"
44 #include "orte/mca/errmgr/base/base.h"
45 #include "orte/mca/errmgr/base/errmgr_private.h"
46
47 #include "orte/mca/errmgr/base/static-components.h"
48
49
50
51
52 orte_errmgr_base_t orte_errmgr_base = {{{0}}};
53
54
55 orte_errmgr_base_module_t orte_errmgr_default_fns = {
56 .init = NULL,
57 .finalize = NULL,
58 .logfn = orte_errmgr_base_log,
59 .abort = orte_errmgr_base_abort,
60 .abort_peers = orte_errmgr_base_abort_peers
61 };
62
63
64
65
66
67 orte_errmgr_base_module_t orte_errmgr = {
68 .logfn = orte_errmgr_base_log
69 };
70
71 static int orte_errmgr_base_close(void)
72 {
73
74 if (NULL != orte_errmgr.finalize) {
75 orte_errmgr.finalize();
76 }
77
78
79 orte_errmgr = orte_errmgr_default_fns;
80
81
82 OPAL_LIST_DESTRUCT(&orte_errmgr_base.error_cbacks);
83
84 return mca_base_framework_components_close(&orte_errmgr_base_framework, NULL);
85 }
86
87
88
89
90
91 static int orte_errmgr_base_open(mca_base_open_flag_t flags)
92 {
93
94 orte_errmgr = orte_errmgr_default_fns;
95
96
97 OBJ_CONSTRUCT(&orte_errmgr_base.error_cbacks, opal_list_t);
98
99
100 return mca_base_framework_components_open(&orte_errmgr_base_framework, flags);
101 }
102
103 MCA_BASE_FRAMEWORK_DECLARE(orte, errmgr, "ORTE Error Manager", NULL,
104 orte_errmgr_base_open, orte_errmgr_base_close,
105 mca_errmgr_base_static_components, 0);