Commit d51b90a8 authored by Max Kellermann's avatar Max Kellermann

thread/Thread: make the destructor non-virtual

The class does not have any virtual methods, and thus the (debug-only) destructor does not need to be virtual.
parent e9912bcf
......@@ -68,7 +68,7 @@ public:
Thread(const Thread &) = delete;
#ifndef NDEBUG
virtual ~Thread() {
~Thread() {
/* all Thread objects must be destructed manually by calling
Join(), to clean up */
assert(!IsDefined());
......
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