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
827 // There is no indication if this function failed or succeeded.827 // There is no indication if this function failed or succeeded.
828 virtual void enqueue_blocked_thread(uint32_t thread_id) = 0;828 virtual void enqueue_blocked_thread(uint32_t thread_id) = 0;
829 829
830 // Gets the number of system threads the scheduler is utilizing
831 virtual std::size_t get_system_thread_count() const = 0;
832
830 // Get all VM threads833 // Get all VM threads
831 virtual std::vector<std::shared_ptr<const vm_thread_t>> get_all_threads() const = 0;834 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;
835 };835 };
836 836
837 // VM thread scheduler interface837 // VM thread scheduler interface