diff options
| author | levlam <levlam@telegram.org> | 2022-09-14 14:49:48 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-09-14 14:49:48 +0300 |
| commit | 70e3586626f8fe3edb878eb94b36abb1dafdf0cb (patch) | |
| tree | 0a2a452bb6233c164ce69326d25f64efa9ca734d /tdactor/example | |
| parent | 0eddd8d4058a6420ea41b21f27dede4717e3d56f (diff) | |
Allow to specify affinity mask for concurrent scheduler threads.
Diffstat (limited to 'tdactor/example')
| -rw-r--r-- | tdactor/example/example.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdactor/example/example.cpp b/tdactor/example/example.cpp index ef85aad6b..fb5ea6507 100644 --- a/tdactor/example/example.cpp +++ b/tdactor/example/example.cpp @@ -37,7 +37,7 @@ class MainActor final : public td::Actor { int main() { td::ConcurrentScheduler scheduler; - scheduler.init(4 /*threads_count*/); + scheduler.init(4 /*thread_count*/, 0); scheduler.start(); { auto guard = scheduler.get_main_guard(); |
