summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Lebedev <lebdron@gmail.com>2018-07-08 18:36:26 +0300
committerKirk Shoop <kirk.shoop@gmail.com>2018-07-08 12:08:25 -0700
commit0b93c186708460962d5f47414fe80b289a24bbe1 (patch)
tree71eebaf2d55b85875a6cc2280636a9cf98bca0d8
parentce5dfc2fdd49693cd109a5f5470b73e982c33f35 (diff)
downloadRxCpp-0b93c186708460962d5f47414fe80b289a24bbe1.tar.gz
Remove static from observe_on_run_loop
- Different run loops can be used with factory calls
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-observe_on.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
index 99de4c3..274f3f1 100644
--- a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
@@ -316,8 +316,7 @@ public:
};
inline observe_on_one_worker observe_on_run_loop(const rxsc::run_loop& rl) {
- static observe_on_one_worker r(rxsc::make_run_loop(rl));
- return r;
+ return observe_on_one_worker(rxsc::make_run_loop(rl));
}
inline observe_on_one_worker observe_on_event_loop() {