virtualx-engine/core/os
Fabio Alessandrelli 4ed1d977fc [OS] Add ThreadWorkPool default size to OS.
Some platforms (*cough* web *cough*) have hard limits on the number of
threads that can be spawned.

Currently, ThreadPoolWork (mostly used in rendering/physics servers)
will spawn as many threads as CPUs available causing exception on
machines with high CPU count.

This commit adds a new overridable method to OS that returns the default
thread pool size (still the CPU count by default), and overrides it for
the JavaScript platform so it always allocate only one thread.

We can likely improve the whole ThreadPoolWork in the future to always
allocate X amount of threads, and assign jobs to them on the fly, but
that will require some more architectural changes.
2021-11-02 04:16:00 +01:00
..
keyboard.cpp Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods 2021-05-07 14:00:50 -06:00
keyboard.h Use Key enum instead of plain integers 2021-08-10 16:26:55 -05:00
main_loop.cpp Replace BIND_VMETHOD by new GDVIRTUAL syntax 2021-08-22 08:23:58 -03:00
main_loop.h Replace BIND_VMETHOD by new GDVIRTUAL syntax 2021-08-22 08:23:58 -03:00
memory.cpp Core: Drop custom copymem/zeromem defines 2021-04-27 16:26:27 +02:00
memory.h Remove unimplemented methods 2021-10-21 18:44:25 +01:00
midi_driver.cpp Use mouse and joypad enums instead of plain integers 2021-06-20 11:54:24 -04:00
midi_driver.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
mutex.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
mutex.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
os.cpp Add support for PowerPC family 2021-11-01 22:25:53 +01:00
os.h [OS] Add ThreadWorkPool default size to OS. 2021-11-02 04:16:00 +01:00
pool_allocator.cpp Core: Drop custom copymem/zeromem defines 2021-04-27 16:26:27 +02:00
pool_allocator.h Fix various typos with codespell 2021-07-25 11:21:51 +02:00
rw_lock.h Modernize RWLock 2021-01-19 11:53:10 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
semaphore.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
spin_lock.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
thread.cpp Fix Platform Thread Override 2021-09-29 15:38:04 -03:00
thread.h Fix Platform Thread Override 2021-09-29 15:38:04 -03:00
thread_safe.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
threaded_array_processor.h Fix thread_process_array when NO_THREADS. 2021-02-26 12:13:20 +01:00
time.cpp Add Time singleton 2021-06-11 09:32:39 -04:00
time.h Add Time singleton 2021-06-11 09:32:39 -04:00