dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
Thread.hpp
Go to the documentation of this file.
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 <string_view>
13#include <system_error>
14
32
34{
42 void setName(std::string_view name, std::error_code & ec) noexcept;
43
50 void setName(std::string_view name);
51
59 std::string getName(std::error_code & ec) noexcept;
60
67 std::string getName();
68} // !namespace dfx::Utils::Thread
Definition Thread.hpp:34
std::string getName()
Get the calling thread name.
void setName(std::string_view name, std::error_code &ec) noexcept
Set the calling thread name.