aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-01-11 10:31:34 +0100
committerPer Larsson <[email protected]>2022-01-11 10:31:34 +0100
commitfa40b11e35f9791bd6ca472ef7bfc246eecbd696 (patch)
tree058c1dcef54eb3c15eedc12b29f24d72db239d52 /zencore/thread.cpp
parentAdded option to disable Sentry crash handler. (diff)
parentNot all toolchains support C++20's atomic<double>::fetch_add() (diff)
downloadzen-fa40b11e35f9791bd6ca472ef7bfc246eecbd696.tar.xz
zen-fa40b11e35f9791bd6ca472ef7bfc246eecbd696.zip
Merged main.
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 358256b1d..97d44e733 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -310,8 +310,7 @@ NamedEvent::NamedEvent(std::string_view EventName)
int Fd = open(EventPath.c_str(), O_RDWR|O_CREAT, 0644);
if (Fd < 0)
{
- using namespace fmt::literals;
- ThrowLastError("Failed to create '{}' for named event"_format(EventPath));
+ ThrowLastError(fmt::format("Failed to create '{}' for named event", EventPath));
}
// Use the file path to generate an IPC key
@@ -631,8 +630,7 @@ ProcessHandle::Initialize(int Pid)
if (!m_ProcessHandle)
{
- using namespace fmt::literals;
- ThrowLastError("ProcessHandle::Initialize(pid: {}) failed"_format(Pid));
+ ThrowLastError(fmt::format("ProcessHandle::Initialize(pid: {}) failed", Pid));
}
m_Pid = Pid;
@@ -1113,8 +1111,7 @@ IsProcessRunning(int pid)
return false;
}
- using namespace fmt::literals;
- ThrowSystemError(Error, "failed to open process with pid {}"_format(pid));
+ ThrowSystemError(Error, fmt::format("failed to open process with pid {}", pid));
}
CloseHandle(hProc);