Skip to content

Commit

Permalink
Merge pull request #19330 from Teemperor/FixFastMonitoringThread.h
Browse files Browse the repository at this point in the history
Use std::shared_ptr in FastMonitoringThread.h
  • Loading branch information
cmsbuild committed Jun 20, 2017
2 parents f53cebe + 4aa3db2 commit 79b818b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EventFilter/Utilities/interface/FastMonitoringThread.h
Expand Up @@ -146,7 +146,7 @@ namespace evf{

void start(void (FastMonitoringService::*fp)(),FastMonitoringService *cp){
assert(!m_thread);
m_thread = boost::shared_ptr<std::thread>(new std::thread(fp,cp));
m_thread = std::shared_ptr<std::thread>(new std::thread(fp,cp));
}
void stop(){
assert(m_thread);
Expand All @@ -157,7 +157,7 @@ namespace evf{
private:

std::atomic<bool> m_stoprequest;
boost::shared_ptr<std::thread> m_thread;
std::shared_ptr<std::thread> m_thread;
MonitorData m_data;
std::mutex monlock_;

Expand Down

0 comments on commit 79b818b

Please sign in to comment.