1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef FWCore_Concurrency_setNThreads_h
#define FWCore_Concurrency_setNThreads_h
//
// setNThreads.h
// CMSSW
//
// Created by Chris Jones on 7/24/20.
//
#include <memory>
#include "FWCore/Concurrency/interface/ThreadsController.h"
namespace edm {
//This guarantees that the previous ThreadsController is destroyed before a new one starts
// At one time certain TBB control elements required such behavior.
unsigned int setNThreads(unsigned int iNThreads, unsigned int iStackSize, std::unique_ptr<ThreadsController>& oPtr);
} // namespace edm
#endif /* FWCore_Concurrency_setNThreads_h */
|