thread
Brett 2024-07-12 18:35:32 -04:00
parent b6d249b23e
commit 05ce4d8fab
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(blt-gp VERSION 0.0.65)
project(blt-gp VERSION 0.0.66)
include(CTest)

View File

@ -309,7 +309,11 @@ namespace blt::gp
} while (!thread_helper.evaluation_left.compare_exchange_weak(end, end - size,
std::memory_order::memory_order_release,
std::memory_order::memory_order_acquire));
auto old_begin = begin;
begin = config.population_size - end;
end = config.population_size - old_begin;
for (blt::size_t i = begin; i < end; i++)
{
auto& ind = current_pop.get_individuals()[i];