Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63a32c6

Browse files
committed
Only spin up Imf threads in the primary instance
1 parent 0c65a54 commit 63a32c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ using namespace std;
1717
TEV_NAMESPACE_BEGIN
1818

1919
int mainFunc(int argc, char* argv[]) {
20-
Imf::setGlobalThreadCount(thread::hardware_concurrency());
21-
2220
ArgumentParser parser{
2321
"Inspection tool for images with a high dynamic range.",
2422
"",
@@ -148,6 +146,8 @@ int mainFunc(int argc, char* argv[]) {
148146
return 0;
149147
}
150148

149+
Imf::setGlobalThreadCount(thread::hardware_concurrency());
150+
151151
cout << "Loading window..." << endl;
152152

153153
// Load images passed via command line in the background prior to

0 commit comments

Comments
 (0)