Skip to content

Commit

Permalink
Name threads
Browse files Browse the repository at this point in the history
  • Loading branch information
brettviren committed Jul 18, 2019
1 parent ef94032 commit 92f862b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TPFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ void filter_proxy(zsock_t* pipe, void* vargs)

zsock_signal(pipe, 0); // signal ready

std::string name = method;
if (config["name"].is_string()) {
name = config["name"];
}
ptmp::internals::set_thread_name(name);

while (!zsys_interrupted) {

void* which = zpoller_wait(pipe_poller, -1);
Expand Down

0 comments on commit 92f862b

Please sign in to comment.