Skip to content

Commit

Permalink
Merge branch 'less_guard_vars' of https://github.com/kgorking/ecs int…
Browse files Browse the repository at this point in the history
…o less_guard_vars
  • Loading branch information
kgorking committed Mar 6, 2024
2 parents f9f0656 + a5ec0d7 commit 106c8b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ecs/ecs.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private:
inline static std::forward_list<thread_data*> head{};

// Mutex for serializing access for adding/removing thread-local instances
inline constinit static std::shared_mutex mtx;
inline static std::shared_mutex mtx;

// Adds a new thread
static void init_thread(thread_data* t) {
Expand Down
2 changes: 1 addition & 1 deletion include/ecs/ecs_sh.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class collect final {
inline static std::forward_list<thread_data*> head{};

// Mutex for serializing access for adding/removing thread-local instances
inline constinit static std::shared_mutex mtx;
inline static std::shared_mutex mtx;

// Adds a new thread
static void init_thread(thread_data* t) {
Expand Down

0 comments on commit 106c8b2

Please sign in to comment.