Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:55

0001 #ifndef FWCore_Concurrency_setNThreads_h
0002 #define FWCore_Concurrency_setNThreads_h
0003 //
0004 //  setNThreads.h
0005 //  CMSSW
0006 //
0007 //  Created by Chris Jones on 7/24/20.
0008 //
0009 #include <memory>
0010 #include "FWCore/Concurrency/interface/ThreadsController.h"
0011 
0012 namespace edm {
0013   //This guarantees that the previous ThreadsController is destroyed before a new one starts
0014   // At one time certain TBB control elements required such behavior.
0015   unsigned int setNThreads(unsigned int iNThreads, unsigned int iStackSize, std::unique_ptr<ThreadsController>& oPtr);
0016 }  // namespace edm
0017 #endif /* FWCore_Concurrency_setNThreads_h */