Skip to content

Commit

Permalink
fix: Unintended parallel system executions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelwan committed Nov 1, 2024
1 parent aa686c7 commit 157c3bb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rt_entt_codegen/shared/parallel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,19 +258,19 @@ static auto loop_iterator(
for(const auto [comp_id, capability] : capabilities) {
auto cpp_name = decl_full_name(comp_id);

if(unsafe_comps.contains(comp_id)) {
if(capability == ECSACT_SYS_CAP_READONLY ||
capability == ECSACT_SYS_CAP_OPTIONAL_READONLY) {
if(!is_capability_safe(capability)) {
if(!unsafe_comps.contains(comp_id)) {
unsafe_comps.insert(comp_id);
} else {
parallel_system_cluster.push_back(parallel_system_list);
loop_iterator(system_list, iterator, parallel_system_cluster);
return;
}
}

if(!is_capability_safe(capability)) {
if(!unsafe_comps.contains(comp_id)) {
unsafe_comps.insert(comp_id);
} else {
if(unsafe_comps.contains(comp_id)) {
if(capability == ECSACT_SYS_CAP_READONLY ||
capability == ECSACT_SYS_CAP_OPTIONAL_READONLY) {
parallel_system_cluster.push_back(parallel_system_list);
loop_iterator(system_list, iterator, parallel_system_cluster);
return;
Expand Down

0 comments on commit 157c3bb

Please sign in to comment.