Fixing ThreadNaming.

This commit is contained in:
stephb9959
2022-07-24 09:57:27 -07:00
parent 78ade7d0e8
commit 81e328f11d

View File

@@ -105,7 +105,7 @@ void TCPServerDispatcher::run()
std::cout << "Setting thread name: " << _pParams->getName() << std::endl;
Poco::Thread::current()->setName(_pParams->getName());
#ifdef __linux__
Poco::Thread::current()->setName(pParams->getName());
Poco::Thread::current()->setName(_pParams->getName());
pthread_setname_np(pthread_self(), _pParams->getName().c_str());
#endif
#ifdef __APPLE__