![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
Functions | |
| void | setName (std::string_view name, std::error_code &ec) noexcept |
| Set the calling thread name. | |
| void | setName (std::string_view name) |
| Set the calling thread name. | |
| std::string | getName (std::error_code &ec) noexcept |
| Get the calling thread name. | |
| std::string | getName () |
| Get the calling thread name. | |
| std::string dfx::Utils::Thread::getName | ( | ) |
Get the calling thread name.
Convenience overload of getName(std::error_code&). On failure, this overload reports the error by throwing
|
noexcept |
Get the calling thread name.
| ec | Output error code. Set to a non-zero value on failure; cleared on success. |
Retrieves the name of the current thread. On failure, the function does not throw and instead reports the error via ec.
| void dfx::Utils::Thread::setName | ( | std::string_view | name | ) |
Set the calling thread name.
| name | New thread name. |
Convenience overload of setName(std::string_view,std::error_code&). On failure, this overload reports the error by throwing.
|
noexcept |
Set the calling thread name.
| name | New thread name. |
| ec | Output error code. Set to a non-zero value on failure; cleared on success. |
Sets the name of the current thread to name. On failure, the function does not throw and instead reports the error via ec.