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
cdo
Commits
da421ae8
Commit
da421ae8
authored
Jun 28, 2017
by
Oliver Heidmann
Browse files
added missing conversion from std::string to const char *
parent
f7cfdac9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/pstream.cc
View file @
da421ae8
...
...
@@ -293,9 +293,9 @@ static void createPipeName(char *pipename, int pnlen){
pthread_t
pCreateReadThread
(
argument_t
*
argument
){
pthread_attr_t
attr
;
int
status
=
pthread_attr_init
(
&
attr
);
if
(
status
)
SysError
(
"pthread_attr_init failed for '%s'"
,
argument
->
operatorName
);
if
(
status
)
SysError
(
"pthread_attr_init failed for '%s'"
,
argument
->
operatorName
.
c_str
()
);
status
=
pthread_attr_setdetachstate
(
&
attr
,
PTHREAD_CREATE_JOINABLE
);
if
(
status
)
SysError
(
"pthread_attr_setdetachstate failed for '%s'"
,
argument
->
operatorName
);
if
(
status
)
SysError
(
"pthread_attr_setdetachstate failed for '%s'"
,
argument
->
operatorName
.
c_str
()
);
/*
param.sched_priority = 0;
status = pthread_attr_setschedparam(&attr, ¶m);
...
...
@@ -324,7 +324,7 @@ pthread_t pCreateReadThread(argument_t *argument){
if
(
rval
!=
0
)
{
errno
=
rval
;
SysError
(
"pthread_create failed for '%s'"
,
argument
->
operatorName
);
SysError
(
"pthread_create failed for '%s'"
,
argument
->
operatorName
.
c_str
()
);
}
return
thrID
;
}
...
...
@@ -1090,7 +1090,7 @@ void pstreamDefVlist(int pstreamID, int vlistID)
{
int
vlistIDcp
=
vlistDuplicate
(
vlistID
);
/* pipeDefVlist(pstreamptr, vlistID);*/
pipeDefVlist
(
pstreamptr
,
vlistID
cp
);
pipeDefVlist
(
pstreamptr
,
vlistID
);
}
else
#endif
...
...
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