summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2023-05-11 12:24:59 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2023-05-11 16:10:09 +0200
commit9077bb9232bd7f4301f5dc511467e07fc42b388b (patch)
tree33e70fc70a244fab89133a51b7f315f5796ccfcd /tests
parentf717cc0a38862a038ae519f2a1e788a6f520fffc (diff)
downloadredot-engine-9077bb9232bd7f4301f5dc511467e07fc42b388b.tar.gz
Fix multiple issues in WorkerThreadPool
- Fix project settings being ignored. - Made usages of `native_thread_allocator` thread-safe. - Remove redundant thread-safety from `low_priority_threads_used`, `exit_threads`. - Fix deadlock due to unintended extra lock of `task_mutex`.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp
index e2808f3aac..6b6257e25d 100644
--- a/tests/test_main.cpp
+++ b/tests/test_main.cpp
@@ -135,6 +135,8 @@ int test_main(int argc, char *argv[]) {
OS::get_singleton()->set_cmdline("", args, List<String>());
DisplayServerMock::register_mock_driver();
+ WorkerThreadPool::get_singleton()->init();
+
// Run custom test tools.
if (test_commands) {
for (const KeyValue<String, TestFunc> &E : (*test_commands)) {