diff options
Diffstat (limited to 'boost/fiber/algo/shared_work.hpp')
-rw-r--r-- | boost/fiber/algo/shared_work.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/boost/fiber/algo/shared_work.hpp b/boost/fiber/algo/shared_work.hpp index e648c5b19f..23bc926e55 100644 --- a/boost/fiber/algo/shared_work.hpp +++ b/boost/fiber/algo/shared_work.hpp @@ -34,17 +34,17 @@ namespace algo { class BOOST_FIBERS_DECL shared_work : public algorithm { private: - typedef std::deque< context * > rqueue_t; - typedef scheduler::ready_queue_t lqueue_t; + typedef std::deque< context * > rqueue_type; + typedef scheduler::ready_queue_type lqueue_type; - static rqueue_t rqueue_; + static rqueue_type rqueue_; static std::mutex rqueue_mtx_; - lqueue_t lqueue_{}; + lqueue_type lqueue_{}; std::mutex mtx_{}; std::condition_variable cnd_{}; bool flag_{ false }; - bool suspend_; + bool suspend_{ false }; public: shared_work() = default; @@ -64,7 +64,7 @@ public: context * pick_next() noexcept; bool has_ready_fibers() const noexcept { - std::unique_lock< std::mutex > lock( rqueue_mtx_); + std::unique_lock< std::mutex > lock{ rqueue_mtx_ }; return ! rqueue_.empty() || ! lqueue_.empty(); } |