diff options
Diffstat (limited to 'runtime/gc/task_processor.h')
-rw-r--r-- | runtime/gc/task_processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/gc/task_processor.h b/runtime/gc/task_processor.h index 765f03557e..67e3a549a9 100644 --- a/runtime/gc/task_processor.h +++ b/runtime/gc/task_processor.h @@ -63,6 +63,7 @@ class TaskProcessor { bool IsRunning() const LOCKS_EXCLUDED(lock_); void UpdateTargetRunTime(Thread* self, HeapTask* target_time, uint64_t new_target_time) LOCKS_EXCLUDED(lock_); + Thread* GetRunningThread() const LOCKS_EXCLUDED(lock_); private: class CompareByTargetRunTime { @@ -76,6 +77,7 @@ class TaskProcessor { bool is_running_ GUARDED_BY(lock_); std::unique_ptr<ConditionVariable> cond_ GUARDED_BY(lock_); std::multiset<HeapTask*, CompareByTargetRunTime> tasks_ GUARDED_BY(lock_); + Thread* running_thread_ GUARDED_BY(lock_); }; } // namespace gc |