Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-17 02:43:54

0001 // -*- C++ -*-
0002 //
0003 // Package:     PerfTools/AllocMonitor
0004 // Class  :     ThreadTracker
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Christopher Jones
0010 //         Created:  Mon, 11 Nov 2024 22:54:23 GMT
0011 //
0012 
0013 // system include files
0014 #include "FWCore/Utilities/interface/thread_safety_macros.h"
0015 
0016 // user include files
0017 #include "ThreadTracker.h"
0018 
0019 //
0020 // constants, enums and typedefs
0021 //
0022 
0023 //
0024 // static data member definitions
0025 //
0026 
0027 namespace cms::perftools::allocMon {
0028   ThreadTracker& ThreadTracker::instance() {
0029     CMS_THREAD_SAFE static ThreadTracker s_tracker;
0030     return s_tracker;
0031   }
0032 }  // namespace cms::perftools::allocMon