Skip to content

Commit

Permalink
Only spin up Imf threads in the primary instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Sep 16, 2017
1 parent 0c65a54 commit 63a32c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ using namespace std;
TEV_NAMESPACE_BEGIN

int mainFunc(int argc, char* argv[]) {
Imf::setGlobalThreadCount(thread::hardware_concurrency());

ArgumentParser parser{
"Inspection tool for images with a high dynamic range.",
"",
Expand Down Expand Up @@ -148,6 +146,8 @@ int mainFunc(int argc, char* argv[]) {
return 0;
}

Imf::setGlobalThreadCount(thread::hardware_concurrency());

cout << "Loading window..." << endl;

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

0 comments on commit 63a32c6

Please sign in to comment.