diff --git a/redGrapes/redGrapes.cpp b/redGrapes/redGrapes.cpp index 9d1e5025..8211b2c2 100644 --- a/redGrapes/redGrapes.cpp +++ b/redGrapes/redGrapes.cpp @@ -51,7 +51,7 @@ namespace redGrapes SPDLOG_TRACE("create child space = {}", (void*) task_space.get()); current_task->children = task_space; - std::unique_lock wr_lock(current_task->space->active_child_spaces_mutex); + std::unique_lock wr_lock(current_task->space->active_child_spaces_mutex); current_task->space->active_child_spaces.push_back(task_space); } diff --git a/redGrapes/scheduler/event.hpp b/redGrapes/scheduler/event.hpp index e3470373..8ff2c5c3 100644 --- a/redGrapes/scheduler/event.hpp +++ b/redGrapes/scheduler/event.hpp @@ -22,10 +22,6 @@ # define REDGRAPES_EVENT_FOLLOWER_LIST_CHUNKSIZE 16 #endif -namespace std -{ - using shared_mutex = shared_timed_mutex; -} // namespace std namespace redGrapes { diff --git a/redGrapes/sync/spinlock.hpp b/redGrapes/sync/spinlock.hpp index 7ed5b914..a4c1d1b2 100644 --- a/redGrapes/sync/spinlock.hpp +++ b/redGrapes/sync/spinlock.hpp @@ -60,7 +60,7 @@ namespace redGrapes alignas(64) std::atomic reader_count; alignas(64) std::atomic write; #else - std::shared_mutex m; + std::shared_timed_mutex m; #endif SpinLock() diff --git a/redGrapes/task/task_space.hpp b/redGrapes/task/task_space.hpp index 71e7c987..3efa2fe1 100644 --- a/redGrapes/task/task_space.hpp +++ b/redGrapes/task/task_space.hpp @@ -28,7 +28,7 @@ namespace redGrapes unsigned depth; Task* parent; - std::shared_mutex active_child_spaces_mutex; + std::shared_timed_mutex active_child_spaces_mutex; std::vector> active_child_spaces; virtual ~TaskSpace();