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
20using namespace disvm;20using namespace disvm;
21using namespace disvm::runtime;21using namespace disvm::runtime;
22 22
23const uint32_t vm_t::root_vm_thread_id = 0;
24const uint32_t vm_t::default_system_thread_count = 1;
25
26// The Inferno implementation defined the thread quanta as 2048 (include/interp.h)
27const uint32_t vm_t::default_thread_quanta = 2048;
28
23vm_t::vm_t(29vm_t::vm_t(
24 create_vm_interface_callback_t<runtime::vm_scheduler_t> create_scheduler,30 create_vm_interface_callback_t<runtime::vm_scheduler_t> create_scheduler,
25 create_vm_interface_callback_t<runtime::vm_garbage_collector_t> create_gc)31 create_vm_interface_callback_t<runtime::vm_garbage_collector_t> create_gc)