History

Add a way to set the number of system threads the VM will use for disvm-exec. Update banner in disvm-exec to indicate DisVM version.

arr committed 10 years ago

Commit 093cfc11 parent 265a2bf3 files · +45 −12Browse files

Showing the changes to src/vm/vm.cpp (1 of 3 files). Show all

Unified · Split

src/vm/vm.cpp+1−6
@@ -34,12 +34,7 @@ vm_t::vm_t( · 33 unmodified lines
34 34
35 if (create_scheduler == nullptr)35 if (create_scheduler == nullptr)
36 {36 {
37 const auto system_thread_count = uint32_t{ 1 };37 _scheduler = std::make_unique<default_scheduler_t>(*this, default_system_thread_count, default_thread_quanta);
38
39 // The Inferno implementation defined the thread quanta as 2048 (include/interp.h)
40 const auto thread_quanta = uint32_t{ 2048 };
41
42 _scheduler = std::make_unique<default_scheduler_t>(*this, system_thread_count, thread_quanta);
43 }38 }
44 else39 else
45 {40 {