History

Ensure a C++ object exists for all static const members of structs or create constexpr functions. - This is an attempt to adhere to the letter of the C++ specification.

arr committed 9 years ago

Commit af5c7a91 parent 4d839d714 files · +86 −64Browse files

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

Unified · Split

src/vm/vm.cpp+6−0
@@ -20,6 +20,12 @@ · 19 unmodified lines
2020 using namespace disvm;
2121 using namespace disvm::runtime;
2222
23+const uint32_t vm_t::root_vm_thread_id = 0;
24+const uint32_t vm_t::default_system_thread_count = 1;
25+
26+// The Inferno implementation defined the thread quanta as 2048 (include/interp.h)
27+const uint32_t vm_t::default_thread_quanta = 2048;
28+
2329 vm_t::vm_t(
2430 create_vm_interface_callback_t<runtime::vm_scheduler_t> create_scheduler,
2531 create_vm_interface_callback_t<runtime::vm_garbage_collector_t> create_gc)