summaryrefslogtreecommitdiff
path: root/boost/fiber/timed_mutex.hpp
diff options
context:
space:
mode:
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);
}