dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
ThreadData.hpp
1// SPDX-FileCopyrightText: 2025 Vincent Leroy
2// SPDX-License-Identifier: MIT
3//
4// This file is part of dfx.
5//
6// Licensed under the MIT License. See the LICENSE file in the project root
7// for full license information.
8
9#pragma once
10
11// Standard includes
12#include <cstdint>
13#include <thread>
14
15namespace dfx::Runtime
16{
46{
49 ThreadData(std::thread::id id)
50 : tid { id }
51 {}
52
54 std::thread::id const tid;
55
56
71 uint32_t nestedLevel = 0;
72};
73} // !namespace dfx::Runtime
Definition Node.hpp:47
std::thread::id const tid
Thread identifier of the owning worker.
Definition ThreadData.hpp:54
uint32_t nestedLevel
Current inline execution depth.
Definition ThreadData.hpp:71
ThreadData(std::thread::id id)
Construct thread data for a specific worker thread.
Definition ThreadData.hpp:49