ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
computational.hpp
1// ReactivePlusPlus library
2//
3// Copyright Aleksey Loginov 2023 - present.
4// Distributed under the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at
6// https://www.boost.org/LICENSE_1_0.txt)
7//
8// Project home: https://github.com/victimsnino/ReactivePlusPlus
9//
10
11#pragma once
12
13#include <rpp/schedulers/fwd.hpp>
14
15#include <rpp/schedulers/thread_pool.hpp>
16
17namespace rpp::schedulers
18{
29 class computational final
30 {
31 public:
32 static auto create_worker()
33 {
34 static thread_pool s_tp{};
35 return s_tp.create_worker();
36 }
37 };
38} // namespace rpp::schedulers
Scheduler owning static thread pool of workers and using "some" thread from this pool on create_worke...
Definition computational.hpp:30
Scheduler owning static thread pool of workers and using "some" thread from this pool on create_worke...
Definition thread_pool.hpp:31