Remove ThreadWorkPool, replace by WorkerThreadPool
The former needs to be allocated once per usage. The later is shared for all threads, which is more efficient. It can also be better debugged.
This commit is contained in:
parent
3bd74cd67b
commit
c7255388e1
31 changed files with 248 additions and 515 deletions
|
|
@ -36,7 +36,6 @@
|
|||
#include "core/os/thread_safe.h"
|
||||
#include "core/templates/hash_set.h"
|
||||
#include "core/templates/safe_refcount.h"
|
||||
#include "core/templates/thread_work_pool.h"
|
||||
#include "scene/main/node.h"
|
||||
|
||||
class FileAccess;
|
||||
|
|
@ -275,8 +274,6 @@ class EditorFileSystem : public Node {
|
|||
|
||||
HashSet<String> group_file_cache;
|
||||
|
||||
ThreadWorkPool import_threads;
|
||||
|
||||
struct ImportThreadData {
|
||||
const ImportFile *reimport_files;
|
||||
int reimport_from;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue