Commit 7aaf9544fc5535a6bae73303f7dac7c03d36b11f

  • avatar
  • Sergey 'Jin' Bostandzhyan <jin @deve…per.digitalstrom.org>
  • Wed Jul 21 11:02:54 CEST 2010
Fixed a problem with thread names

Switched to const char * in thread names, otherwise the string got freed
which is not what we want.
core/subsystem.h
(1 / 1)
  
7171
7272 class ThreadedSubsystem: public Subsystem, protected Thread {
7373 public:
74 ThreadedSubsystem(DSS* _pDSS, const std::string& _name, const std::string& _threadName) : Subsystem(_pDSS, _name), Thread(_threadName.c_str()) {}
74 ThreadedSubsystem(DSS* _pDSS, const std::string& _name, const char* _threadName) : Subsystem(_pDSS, _name), Thread(_threadName) {}
7575 virtual void shutdown() { Thread::terminate(); }
7676 bool isRunning() { return Thread::isRunning(); }
7777 };