ReactivePlusPlus
ReactiveX implementation for C++20
Toggle main menu visibility
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/AlexInLog/ReactivePlusPlus
9
//
10
11
#pragma once
12
13
#include <rpp/schedulers/fwd.hpp>
14
15
#include <rpp/schedulers/thread_pool.hpp>
16
17
namespace
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
rpp::schedulers::computational
Scheduler owning static thread pool of workers and using "some" thread from this pool on create_worke...
Definition
computational.hpp:30
rpp::schedulers::thread_pool
Scheduler owning static thread pool of workers and using "some" thread from this pool on create_worke...
Definition
thread_pool.hpp:31
src
rpp
rpp
schedulers
computational.hpp
Generated by
1.17.0