This source file includes following definitions.
- pmix_pshmem_close
- pmix_pshmem_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 <src/include/pmix_config.h>
27
28 #include <pmix_common.h>
29
30 #ifdef HAVE_STRING_H
31 #include <string.h>
32 #endif
33
34 #include "src/class/pmix_list.h"
35 #include "src/mca/base/base.h"
36 #include "src/mca/pshmem/base/base.h"
37
38
39
40
41
42
43
44 #include "src/mca/pshmem/base/static-components.h"
45
46 static bool initialized = false;
47
48
49 pmix_pshmem_base_module_t pmix_pshmem = {0};
50
51 static pmix_status_t pmix_pshmem_close(void)
52 {
53 if (!initialized) {
54 return PMIX_SUCCESS;
55 }
56 initialized = false;
57
58 return pmix_mca_base_framework_components_close(&pmix_pshmem_base_framework, NULL);
59 }
60
61 static pmix_status_t pmix_pshmem_open(pmix_mca_base_open_flag_t flags)
62 {
63 if (initialized) {
64 return PMIX_SUCCESS;
65 }
66
67 initialized = true;
68
69
70 return pmix_mca_base_framework_components_open(&pmix_pshmem_base_framework, flags);
71 }
72
73 PMIX_MCA_BASE_FRAMEWORK_DECLARE(pmix, pshmem, "PMIx Shared memory",
74 NULL, pmix_pshmem_open, pmix_pshmem_close,
75 mca_pshmem_base_static_components, 0);