Skip to content

Commit

Permalink
Merge pull request #506 from slaclab/ESROGUE-391
Browse files Browse the repository at this point in the history
Add thread names
  • Loading branch information
slacrherbst authored Sep 20, 2019
2 parents ee4a931 + 543bb03 commit 2e8939d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rogue/protocols/udp/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ rpu::Client::Client ( std::string host, uint16_t port, bool jumbo) : rpu::Core(j

// Start rx thread
thread_ = new boost::thread(boost::bind(&rpu::Client::runThread, this));

// Set a thread name
pthread_setname_np( thread_->native_handle(), "UdpClient" );
}

//! Destructor
Expand Down
3 changes: 3 additions & 0 deletions src/rogue/protocols/udp/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ rpu::Server::Server (uint16_t port, bool jumbo) : rpu::Core(jumbo) {

// Start rx thread
thread_ = new boost::thread(boost::bind(&rpu::Server::runThread, this));

// Set a thread name
pthread_setname_np( thread_->native_handle(), "UdpServer" );
}

//! Destructor
Expand Down

0 comments on commit 2e8939d

Please sign in to comment.