summaryrefslogtreecommitdiff
path: root/boost/fiber/algo/shared_work.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:08:07 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:09:00 +0900
commitb5c87084afaef42b2d058f68091be31988a6a874 (patch)
treeadef9a65870a41181687e11d57fdf98e7629de3c /boost/fiber/algo/shared_work.hpp
parent34bd32e225e2a8a94104489b31c42e5801cc1f4a (diff)
downloadboost-b5c87084afaef42b2d058f68091be31988a6a874.tar.gz
boost-b5c87084afaef42b2d058f68091be31988a6a874.tar.bz2
boost-b5c87084afaef42b2d058f68091be31988a6a874.zip
Imported Upstream version 1.64.0upstream/1.64.0
Change-Id: Id9212edd016dd55f21172c427aa7894d1d24148b Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/fiber/algo/shared_work.hpp')
-rw-r--r--boost/fiber/algo/shared_work.hpp12
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();
}