Skip to content

Commit

Permalink
Added comment about ThreadsController lifetime requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Sep 3, 2020
1 parent cb40a2f commit c645fae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FWCore/Concurrency/interface/setNThreads.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#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 */

0 comments on commit c645fae

Please sign in to comment.