2
0
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:
Oliver Kowalke
2015-12-07 18:47:35 +01:00
parent 228a676875
commit a49cf433f7
2 changed files with 5 additions and 5 deletions

View File

@@ -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_) {

View File

@@ -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 (...) {