Commit af64bd50 authored by Max Kellermann's avatar Max Kellermann

Thread/Thread: disallow copying

parent 050f81c4
......@@ -57,6 +57,7 @@ public:
explicit Thread(Function _f) noexcept:f(_f) {}
Thread(const Thread &) = delete;
Thread &operator=(const Thread &) = delete;
#ifndef NDEBUG
~Thread() noexcept {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment