summaryrefslogtreecommitdiff
path: root/zen/thread.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-02-21 12:13:36 -0500
committerB. Stack <bgstack15@gmail.com>2023-02-21 12:13:36 -0500
commit5a6ed4e8eadf3af3d141b246f124d67b62a1357c (patch)
tree4e49ae80efbe181c46110867fe7cf703efd3fcf5 /zen/thread.h
parentargon2 copyright notice updated (diff)
downloadFreeFileSync-12.1.tar.gz
FreeFileSync-12.1.tar.bz2
FreeFileSync-12.1.zip
add upstream 12.112.1
Diffstat (limited to 'zen/thread.h')
-rw-r--r--zen/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/thread.h b/zen/thread.h
index 25a6463a..2464f8be 100644
--- a/zen/thread.h
+++ b/zen/thread.h
@@ -153,7 +153,7 @@ class ThreadGroup
{
public:
ThreadGroup(size_t threadCountMax, const Zstring& groupName) : threadCountMax_(threadCountMax), groupName_(groupName)
- { if (threadCountMax == 0) throw std::logic_error("Contract violation! " + std::string(__FILE__) + ':' + numberTo<std::string>(__LINE__)); }
+ { if (threadCountMax == 0) throw std::logic_error(std::string(__FILE__) + '[' + numberTo<std::string>(__LINE__) + "] Contract violation!"); }
ThreadGroup (ThreadGroup&& tmp) noexcept = default; //noexcept *required* to support move for reallocations in std::vector and std::swap!!!
ThreadGroup& operator=(ThreadGroup&& tmp) noexcept = default; //don't use swap() but end worker_ life time immediately
bgstack15