add names to gxs threads

This commit is contained in:
sehraf 2016-06-01 16:47:21 +02:00
parent bc23c2f7b9
commit f9d4a0cbfb
3 changed files with 17 additions and 17 deletions

View file

@ -71,9 +71,9 @@ void RsServer::ConfigFinalSave()
mConfigMgr->completeConfiguration(); mConfigMgr->completeConfiguration();
} }
void RsServer::startServiceThread(RsTickingThread *t) void RsServer::startServiceThread(RsTickingThread *t, const std::string &threadName)
{ {
t->start() ; t->start(threadName) ;
mRegisteredServiceThreads.push_back(t) ; mRegisteredServiceThreads.push_back(t) ;
} }

View file

@ -120,8 +120,8 @@ class RsServer: public RsControl, public RsTickingThread
public: public:
/* Config */ /* Config */
virtual void ConfigFinalSave( ); virtual void ConfigFinalSave( );
virtual void startServiceThread(RsTickingThread *t) ; virtual void startServiceThread(RsTickingThread *t, const std::string &threadName) ;
/************* Rs shut down function: in upnp 'port lease time' bug *****************/ /************* Rs shut down function: in upnp 'port lease time' bug *****************/

View file

@ -1768,27 +1768,27 @@ int RsServer::StartupRetroShare()
//rsWire = mWire; //rsWire = mWire;
/*** start up GXS core runner ***/ /*** start up GXS core runner ***/
startServiceThread(mGxsIdService); startServiceThread(mGxsIdService, "gxs id");
startServiceThread(mGxsCircles); startServiceThread(mGxsCircles, "gxs circle");
startServiceThread(mPosted); startServiceThread(mPosted, "gxs posted");
#if RS_USE_WIKI #if RS_USE_WIKI
startServiceThread(mWiki); startServiceThread(mWiki, "gxs wiki");
#endif #endif
startServiceThread(mGxsForums); startServiceThread(mGxsForums, "gxs forums");
startServiceThread(mGxsChannels); startServiceThread(mGxsChannels, "gxs channels");
//createThread(*mPhoto); //createThread(*mPhoto);
//createThread(*mWire); //createThread(*mWire);
// cores ready start up GXS net servers // cores ready start up GXS net servers
startServiceThread(gxsid_ns); startServiceThread(gxsid_ns, "gxs id ns");
startServiceThread(gxscircles_ns); startServiceThread(gxscircles_ns, "gxs circle ns");
startServiceThread(posted_ns); startServiceThread(posted_ns, "gxs posted ns");
#if RS_USE_WIKI #if RS_USE_WIKI
startServiceThread(wiki_ns); startServiceThread(wiki_ns, "gxs wiki ns");
#endif #endif
startServiceThread(gxsforums_ns); startServiceThread(gxsforums_ns, "gxs forums ns");
startServiceThread(gxschannels_ns); startServiceThread(gxschannels_ns, "gxs channels ns");
//createThread(*photo_ns); //createThread(*photo_ns);
//createThread(*wire_ns); //createThread(*wire_ns);
@ -1834,7 +1834,7 @@ int RsServer::StartupRetroShare()
} }
/* Startup this thread! */ /* Startup this thread! */
start("RsServer main") ; start("rs main") ;
return 1; return 1;
} }