Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
da1633eb
Commit
da1633eb
authored
Mar 12, 2017
by
Constantin Rack
Committed by
GitHub
Mar 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2368 from bluca/io_thread_name
Problem: refactor gone wrong, redundant thread name
parents
33246f7a
d7aceef2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ctx.cpp
src/ctx.cpp
+1
-1
thread.cpp
src/thread.cpp
+4
-4
No files found.
src/ctx.cpp
View file @
da1633eb
...
...
@@ -412,7 +412,7 @@ void zmq::ctx_t::start_thread (thread_t &thread_, thread_fn *tfn_, void *arg_) c
{
thread_
.
start
(
tfn_
,
arg_
);
thread_
.
setSchedulingParameters
(
thread_priority
,
thread_sched_policy
);
thread_
.
setThreadName
(
"ZMQ b
/g threa
d"
);
thread_
.
setThreadName
(
"ZMQ b
ackgroun
d"
);
}
void
zmq
::
ctx_t
::
send_command
(
uint32_t
tid_
,
const
command_t
&
command_
)
...
...
src/thread.cpp
View file @
da1633eb
...
...
@@ -170,16 +170,16 @@ void zmq::thread_t::setThreadName(const char *name_)
if
(
!
name_
)
return
;
#if defined(HAVE_PTHREAD_SETNAME_1)
#if defined(
ZMQ_
HAVE_PTHREAD_SETNAME_1)
int
rc
=
pthread_setname_np
(
name_
);
posix_assert
(
rc
);
#elif defined(HAVE_PTHREAD_SETNAME_2)
#elif defined(
ZMQ_
HAVE_PTHREAD_SETNAME_2)
int
rc
=
pthread_setname_np
(
descriptor
,
name_
);
posix_assert
(
rc
);
#elif defined(HAVE_PTHREAD_SETNAME_3)
#elif defined(
ZMQ_
HAVE_PTHREAD_SETNAME_3)
int
rc
=
pthread_setname_np
(
descriptor
,
name_
,
NULL
);
posix_assert
(
rc
);
#elif defined(HAVE_PTHREAD_SET_NAME)
#elif defined(
ZMQ_
HAVE_PTHREAD_SET_NAME)
pthread_set_name_np
(
descriptor
,
name_
);
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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