X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Futil%2Fthread.h;h=73e9beb806f44d8effc6dd8e3a3bec3f82adf23f;hb=79e393cf4b5027eb9071df23f4834aac3f3a689f;hp=fbd04c08ea14c341235c6d9ef1ab6e1a70612f50;hpb=921151d97a2fb2238ab514324fb95e2732248b96;p=minetest.git diff --git a/src/util/thread.h b/src/util/thread.h index fbd04c08e..73e9beb80 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -19,9 +19,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma once -#include "../irrlichttypes.h" -#include "../threading/thread.h" -#include "../threading/mutex_auto_lock.h" +#include "irrlichttypes.h" +#include "threading/thread.h" +#include "threading/mutex_auto_lock.h" #include "porting.h" #include "log.h" #include "container.h" @@ -78,8 +78,8 @@ class CallerInfo { template class GetRequest { public: - GetRequest() {} - ~GetRequest() {} + GetRequest() = default; + ~GetRequest() = default; GetRequest(const Key &a_key): key(a_key) { @@ -189,7 +189,7 @@ class UpdateThread : public Thread { public: UpdateThread(const std::string &name) : Thread(name + "Update") {} - ~UpdateThread() {} + ~UpdateThread() = default; void deferUpdate() { m_update_sem.post(); } @@ -203,7 +203,6 @@ class UpdateThread : public Thread void *run() { - DSTACK(FUNCTION_NAME); BEGIN_DEBUG_EXCEPTION_HANDLER while (!stopRequested()) {