Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
b329bef5
Commit
b329bef5
authored
Apr 02, 2014
by
Thomas Jahns
🤸
Browse files
Rename backend initializer/finalizer functions.
parent
0c904682
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pio.c
View file @
b329bef5
...
...
@@ -141,7 +141,7 @@ int pioFileOpen(const char *filename, const char *mode)
/***************************************************************/
void
backend
Init
(
void
(
*
postCommSetupActions
)(
void
))
void
cdiPioFileWriting
Init
(
void
(
*
postCommSetupActions
)(
void
))
{
int
IOMode
=
commInqIOMode
();
...
...
@@ -174,7 +174,7 @@ void backendInit(void (*postCommSetupActions)(void))
/***************************************************************/
void
backendCleanup
(
void
)
void
cdiPioFileWritingFinalize
(
void
)
{
int
IOMode
=
commInqIOMode
();
switch
(
IOMode
)
...
...
src/pio.h
View file @
b329bef5
...
...
@@ -10,8 +10,8 @@
#include
"cdi_int.h"
void
backendCleanup
(
void
);
void
backendInit
(
void
(
*
postCommSetupActions
)
(
void
)
)
;
void
cdiPioFileWritingInit
(
void
(
*
postCommSetupActions
)(
void
)
);
void
cdiPioFileWritingFinalize
(
void
);
int
pioFileOpen
(
const
char
*
filename
,
const
char
*
mode
);
int
pioFileClose
(
int
);
size_t
cdiPioFileWrite
(
int
fileID
,
const
void
*
restrict
buffer
,
size_t
len
,
...
...
src/pio_server.c
View file @
b329bef5
...
...
@@ -1050,7 +1050,7 @@ void cdiPioServer(void (*postCommSetupActions)(void))
xdebug
(
"%s"
,
"START"
);
backend
Init
(
postCommSetupActions
);
cdiPioFileWriting
Init
(
postCommSetupActions
);
if
(
commInqRankNode
()
==
commInqSpecialRankNode
())
return
;
commCalc
=
commInqCommCalc
();
...
...
@@ -1109,7 +1109,7 @@ void cdiPioServer(void (*postCommSetupActions)(void))
free
(
resHs
);
}
}
backendCleanup
();
cdiPioFileWritingFinalize
();
serverWinCleanup
();
#ifdef HAVE_PARALLEL_NC4
free
(
pioPrimes
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment