mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Cleanup various headers to reduce compilation times (#6255)
* Cleanup various headers to reduce compilation times
This commit is contained in:
@@ -24,8 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include <deque>
|
||||
#include <map>
|
||||
|
||||
#include "threading/thread.h"
|
||||
#include "threading/semaphore.h"
|
||||
#include "threading/thread.h"
|
||||
#include "debug.h"
|
||||
#include "lua.h"
|
||||
#include "cpp_api/s_base.h"
|
||||
@@ -39,7 +39,7 @@ class AsyncEngine;
|
||||
// Data required to queue a job
|
||||
struct LuaJobInfo
|
||||
{
|
||||
LuaJobInfo() {};
|
||||
LuaJobInfo() = default;
|
||||
|
||||
// Function to be called in async environment
|
||||
std::string serializedFunction = "";
|
||||
|
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include "util/basic_macros.h"
|
||||
|
||||
extern "C" {
|
||||
@@ -30,7 +31,6 @@ extern "C" {
|
||||
}
|
||||
|
||||
#include "irrlichttypes.h"
|
||||
#include "threading/mutex_auto_lock.h"
|
||||
#include "common/c_types.h"
|
||||
#include "common/c_internal.h"
|
||||
|
||||
|
@@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include <thread>
|
||||
#include "common/c_internal.h"
|
||||
#include "cpp_api/s_base.h"
|
||||
#include "threading/mutex_auto_lock.h"
|
||||
|
||||
#ifdef SCRIPTAPI_LOCK_DEBUG
|
||||
#include "debug.h" // assert()
|
||||
|
Reference in New Issue
Block a user