summaryrefslogtreecommitdiffstats
path: root/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 9c9542325e..f1ee4bf2a6 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -140,7 +140,6 @@ static Engine *engine = nullptr;
static ProjectSettings *globals = nullptr;
static Input *input = nullptr;
static InputMap *input_map = nullptr;
-static WorkerThreadPool *worker_thread_pool = nullptr;
static TranslationServer *translation_server = nullptr;
static Performance *performance = nullptr;
static PackedData *packed_data = nullptr;
@@ -691,8 +690,6 @@ Error Main::test_setup() {
register_core_settings(); // Here globals are present.
- worker_thread_pool = memnew(WorkerThreadPool);
-
translation_server = memnew(TranslationServer);
tsman = memnew(TextServerManager);
@@ -803,8 +800,6 @@ void Main::test_cleanup() {
ResourceSaver::remove_custom_savers();
PropertyListHelper::clear_base_helpers();
- WorkerThreadPool::get_singleton()->finish();
-
#ifdef TOOLS_ENABLED
GDExtensionManager::get_singleton()->deinitialize_extensions(GDExtension::INITIALIZATION_LEVEL_EDITOR);
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_EDITOR);
@@ -846,9 +841,6 @@ void Main::test_cleanup() {
if (physics_server_2d_manager) {
memdelete(physics_server_2d_manager);
}
- if (worker_thread_pool) {
- memdelete(worker_thread_pool);
- }
if (globals) {
memdelete(globals);
}
@@ -939,7 +931,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
register_core_settings(); //here globals are present
- worker_thread_pool = memnew(WorkerThreadPool);
translation_server = memnew(TranslationServer);
performance = memnew(Performance);
GDREGISTER_CLASS(Performance);
@@ -2629,10 +2620,6 @@ error:
if (translation_server) {
memdelete(translation_server);
}
- if (worker_thread_pool) {
- worker_thread_pool->finish();
- memdelete(worker_thread_pool);
- }
if (globals) {
memdelete(globals);
}
@@ -4514,7 +4501,7 @@ void Main::cleanup(bool p_force) {
ResourceLoader::clear_translation_remaps();
ResourceLoader::clear_path_remaps();
- WorkerThreadPool::get_singleton()->finish();
+ WorkerThreadPool::get_singleton()->exit_languages_threads();
ScriptServer::finish_languages();
@@ -4606,9 +4593,6 @@ void Main::cleanup(bool p_force) {
if (physics_server_2d_manager) {
memdelete(physics_server_2d_manager);
}
- if (worker_thread_pool) {
- memdelete(worker_thread_pool);
- }
if (globals) {
memdelete(globals);
}