History

Fix race condition between scheduler and debugger during all thread suspension.

arr committed 9 years ago

Commit bd141a71 parent a6da1dc5 files · +20 −33Browse files

Showing the changes to src/include (1 of 5 files). Show all

Unified · Split

src/include/runtime.h+3−3
@@ -827,11 +827,11 @@ namespace disvm · 826 unmodified lines
827827 // There is no indication if this function failed or succeeded.
828828 virtual void enqueue_blocked_thread(uint32_t thread_id) = 0;
829829
830+ // Gets the number of system threads the scheduler is utilizing
831+ virtual std::size_t get_system_thread_count() const = 0;
832+
830833 // Get all VM threads
831834 virtual std::vector<std::shared_ptr<const vm_thread_t>> get_all_threads() const = 0;
832−
833− // Get runnable VM threads
834− virtual std::vector<std::shared_ptr<const vm_thread_t>> get_runnable_threads() const = 0;
835835 };
836836
837837 // VM thread scheduler interface