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.
This commit is contained in:
parent
e9912bcf8a
commit
d51b90a880
@ -68,7 +68,7 @@ public:
|
|||||||
Thread(const Thread &) = delete;
|
Thread(const Thread &) = delete;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
virtual ~Thread() {
|
~Thread() {
|
||||||
/* all Thread objects must be destructed manually by calling
|
/* all Thread objects must be destructed manually by calling
|
||||||
Join(), to clean up */
|
Join(), to clean up */
|
||||||
assert(!IsDefined());
|
assert(!IsDefined());
|
||||||
|
Loading…
Reference in New Issue
Block a user