summaryrefslogtreecommitdiff
path: root/Rx
diff options
context:
space:
mode:
authorKrzysztof Sinica <k.sinica@fibargroup.com>2015-09-09 15:19:17 +0200
committerKrzysztof Sinica <k.sinica@fibargroup.com>2015-09-09 15:19:17 +0200
commit3c8604f3ae85a60d0be0447a8ce785fc2c6d88b3 (patch)
treef81511e080f59b1b605159e901270f199ac428fd /Rx
parent652bcd9335064e96d0035ec73afa514ce8215b7f (diff)
downloadRxCpp-3c8604f3ae85a60d0be0447a8ce785fc2c6d88b3.tar.gz
Changed nextdetacher::do_unsubscribe memeber to an atomic type.
Diffstat (limited to 'Rx')
-rw-r--r--Rx/v2/src/rxcpp/rx-subscriber.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rx/v2/src/rxcpp/rx-subscriber.hpp b/Rx/v2/src/rxcpp/rx-subscriber.hpp
index 30adcfd..9d443a1 100644
--- a/Rx/v2/src/rxcpp/rx-subscriber.hpp
+++ b/Rx/v2/src/rxcpp/rx-subscriber.hpp
@@ -52,7 +52,7 @@ class subscriber : public subscriber_base<T>
trace_activity().on_next_enter(*that, u);
try {
that->destination.on_next(std::move(u));
- do_unsubscribe = false;
+ do_unsubscribe.store(false);
} catch(...) {
auto ex = std::current_exception();
trace_activity().on_error_enter(*that, ex);
@@ -61,7 +61,7 @@ class subscriber : public subscriber_base<T>
}
}
const this_type* that;
- bool do_unsubscribe;
+ std::atomic<bool> do_unsubscribe;
};
struct errordetacher