[Bf-blender-cvs] [cf18ebb] openvdb: Fix thread_ids vector having the wrong size.

Kévin Dietrich noreply at git.blender.org
Sun Nov 13 21:44:21 CET 2016


Commit: cf18ebba7d92b9401400bafe5a75a666f901ecb9
Author: Kévin Dietrich
Date:   Wed May 11 13:48:04 2016 +0200
Branches: openvdb
https://developer.blender.org/rBcf18ebba7d92b9401400bafe5a75a666f901ecb9

Fix thread_ids vector having the wrong size.

===================================================================

M	intern/cycles/util/util_task.cpp

===================================================================

diff --git a/intern/cycles/util/util_task.cpp b/intern/cycles/util/util_task.cpp
index 6f0100d..f2a9409 100644
--- a/intern/cycles/util/util_task.cpp
+++ b/intern/cycles/util/util_task.cpp
@@ -206,7 +206,8 @@ void TaskScheduler::init(int num_threads)
 
 		for(size_t i = 0; i < threads.size(); i++) {
 			threads[i] = new thread(function_bind(&TaskScheduler::thread_run, i + 1));
-			threads_ids.push_back(threads[i]->id());
+			threads_ids[i] = threads[i]->id();
+			std::cerr << "Thread " << i << ", id: " << threads[i]->id() << '\n';
 		}
 	}




More information about the Bf-blender-cvs mailing list