Flow 1.0.2
Flow project: Full implementation reference.
async_fwd.hpp
Go to the documentation of this file.
1/* Flow
2 * Copyright 2023 Akamai Technologies, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the
5 * "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy
7 * of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in
12 * writing, software distributed under the License is
13 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
14 * CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing
16 * permissions and limitations under the License. */
17
18/// @file
19#pragma once
20
21#include <stdint.h>
22
23namespace flow::async
24{
25// Types.
26
27// Find doc headers near the bodies of these compound types.
28
29class Task_qing_thread;
30
31// Free functions.
32
33/**
34 * Returns the 0-based processor *logical* (not hardware) core index of the core executing the calling thread
35 * presently. Since the value of this can change from statement to statement in the same thread, probably this
36 * is not to be used except for logging/reporting.
37 *
38 * @return See above.
39 */
40uint16_t cpu_idx();
41
42} // namespace flow::async
Flow module containing tools enabling multi-threaded event loops operating under the asynchronous-tas...
Definition: async_fwd.hpp:75
uint16_t cpu_idx()
Returns the 0-based processor logical (not hardware) core index of the core executing the calling thr...
Definition: async.cpp:30