ReactiveX / RxCpp

Reactive Extensions for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault in case of using new_thread + current_thread

victimsnino opened this issue · comments

Example:

    rxcpp::observable<>::range(1, rxcpp::observe_on_new_thread())
        .delay(std::chrono::seconds(1), rxcpp::identity_current_thread())
        .as_blocking()
        .subscribe([](const auto &v)
                   { std::cout << v << std::endl; },
                   []()
                   { std::cout << "COMPLETED"; });

Crashed near scheduling first emission inside "delay"