summaryrefslogtreecommitdiff
path: root/boost/fiber/timed_mutex.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/timed_mutex.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/timed_mutex.hpp')
-rw-r--r--boost/fiber/timed_mutex.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/boost/fiber/timed_mutex.hpp b/boost/fiber/timed_mutex.hpp
index ed6dbd458e..f74c5e41ad 100644
--- a/boost/fiber/timed_mutex.hpp
+++ b/boost/fiber/timed_mutex.hpp
@@ -35,11 +35,11 @@ class BOOST_FIBERS_DECL timed_mutex {
private:
friend class condition_variable;
- typedef context::wait_queue_t wait_queue_t;
+ typedef context::wait_queue_t wait_queue_type;
- context * owner_{ nullptr };
- wait_queue_t wait_queue_{};
detail::spinlock wait_queue_splk_{};
+ wait_queue_type wait_queue_{};
+ context * owner_{ nullptr };
bool try_lock_until_( std::chrono::steady_clock::time_point const& timeout_time) noexcept;
@@ -60,8 +60,7 @@ public:
template< typename Clock, typename Duration >
bool try_lock_until( std::chrono::time_point< Clock, Duration > const& timeout_time_) {
- std::chrono::steady_clock::time_point timeout_time(
- detail::convert( timeout_time_) );
+ std::chrono::steady_clock::time_point timeout_time = detail::convert( timeout_time_);
return try_lock_until_( timeout_time);
}