]> git.lizzy.rs Git - minetest.git/blobdiff - src/util/thread.h
Light curve: Simplify and improve code, fix darkened daytime sky (#7693)
[minetest.git] / src / util / thread.h
index fbd04c08ea14c341235c6d9ef1ab6e1a70612f50..73e9beb806f44d8effc6dd8e3a3bec3f82adf23f 100644 (file)
@@ -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<typename Key, typename T, typename Caller, typename CallerData>
 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()) {