ConcurrentJobManager uses ThreadPool to do parallel Gdal RasterIO calls. Some tile gets corrupted...

This commit is contained in:
Erik Broberg
2016-05-20 12:55:37 -04:00
parent bfb8e1a92d
commit bb551432e3
5 changed files with 16 additions and 36 deletions
+8 -1
View File
@@ -113,8 +113,15 @@ namespace openspace {
} // release lock
// wake up one thread
std::cout << "Notify one thread" << std::endl;
condition.notify_one();
}
void ThreadPool::clearTasks() {
{ // acquire lock
std::unique_lock<std::mutex> lock(queue_mutex);
tasks.clear();
} // release lock
}
} // namespace openspace