mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 14:22:23 +00:00
some code formating
This commit is contained in:
@@ -40,9 +40,9 @@ private:
|
||||
mutable condition waiters_{};
|
||||
|
||||
protected:
|
||||
mutable mutex mtx_{};
|
||||
bool ready_{ false };
|
||||
std::exception_ptr except_{};
|
||||
mutable mutex mtx_{};
|
||||
bool ready_{ false };
|
||||
std::exception_ptr except_{};
|
||||
|
||||
void mark_ready_and_notify_( std::unique_lock< mutex > & lk) noexcept {
|
||||
ready_ = true;
|
||||
@@ -208,7 +208,7 @@ public:
|
||||
template< typename R >
|
||||
class shared_state< R & > : public shared_state_base {
|
||||
private:
|
||||
R * value_{ nullptr };
|
||||
R * value_{ nullptr };
|
||||
|
||||
void set_value_( R & value, std::unique_lock< mutex > & lk) {
|
||||
if ( ready_) {
|
||||
|
||||
@@ -57,9 +57,9 @@ public:
|
||||
typedef std::allocator_traits<
|
||||
typename object_t::allocator_t
|
||||
> traits_t;
|
||||
|
||||
typename object_t::allocator_t a{ alloc };
|
||||
typename traits_t::pointer ptr{ traits_t::allocate( a, 1) };
|
||||
|
||||
try {
|
||||
traits_t::construct( a, ptr, a, std::forward< Fn >( fn) );
|
||||
} catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user