Commit 3be713d0 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[ADD] automatically give the pthreads of the modules telling names

parent ac3db61c
......@@ -25,6 +25,9 @@
#include <set>
#include <string>
#include <sstream>
#ifdef __linux__
#include <sys/prctl.h>
#endif
#include <boost/shared_ptr.hpp>
......@@ -254,6 +257,10 @@ void WModule::connectToGui()
void WModule::threadMain()
{
#ifdef __linux__
prctl( PR_SET_NAME, ( "walnut (" + getName() + ")" ).c_str() );
#endif
try
{
WLogger::getLogger()->addLogMessage( "Starting module main method.", "Module (" + getName() + ")", LL_INFO );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment