Skip to content

Commit

Permalink
Bugfix - GetConfig() return actual config rather than default.
Browse files Browse the repository at this point in the history
(cherry picked from commit b75029b)
  • Loading branch information
dougbinks committed Oct 29, 2019
1 parent 7188cab commit 3bef127
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,7 @@ void TaskScheduler::SplitAndAddTask( uint32_t threadNum_, SubTaskSet subTask_, u

ENKITS_API TaskSchedulerConfig enki::TaskScheduler::GetConfig() const
{
TaskSchedulerConfig config;
if( m_bHaveThreads )
{
config.numTaskThreadsToCreate = m_NumThreads;
config.numExternalTaskThreads = 0;
}
return config;
return m_Config;
}

void TaskScheduler::AddTaskSetToPipe( ITaskSet* pTaskSet_ )
Expand Down

0 comments on commit 3bef127

Please sign in to comment.