Skip to content

Commit

Permalink
Updated module and single-include header
Browse files Browse the repository at this point in the history
  • Loading branch information
kgorking committed Oct 4, 2023
1 parent cf19054 commit 63412c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/ecs/ecs.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if defined(ECS_USE_MODULES)
import ecs;
#else
#if 1
#if 0 // Use this for dev
#include "runtime.h"
#else
// test single-include header
// Use the single-include header, it's faster to compile
#include "ecs_sh.h"
#endif
#endif
3 changes: 1 addition & 2 deletions include/ecs/ecs.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,6 @@ private:
using chunk_const_iter = typename std::vector<chunk>::const_iterator;

std::vector<chunk> chunks;

std::vector<component_pool_base*> variants;

// Status flags
Expand Down Expand Up @@ -4175,7 +4174,7 @@ class context final {
scheduler sched;

mutable std::shared_mutex system_mutex;
mutable std::shared_mutex component_pool_mutex;
mutable std::recursive_mutex component_pool_mutex;

bool commit_in_progress = false;
bool run_in_progress = false;
Expand Down
3 changes: 1 addition & 2 deletions include/ecs/ecs_sh.h
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,6 @@ class component_pool final : public component_pool_base {
using chunk_const_iter = typename std::vector<chunk>::const_iterator;

std::vector<chunk> chunks;

std::vector<component_pool_base*> variants;

// Status flags
Expand Down Expand Up @@ -4171,7 +4170,7 @@ class context final {
scheduler sched;

mutable std::shared_mutex system_mutex;
mutable std::shared_mutex component_pool_mutex;
mutable std::recursive_mutex component_pool_mutex;

bool commit_in_progress = false;
bool run_in_progress = false;
Expand Down

0 comments on commit 63412c0

Please sign in to comment.