diff --git a/src/apps/debugger/util/Worker.cpp b/src/apps/debugger/util/Worker.cpp index 0a3133cbe5..f1f58ab380 100644 --- a/src/apps/debugger/util/Worker.cpp +++ b/src/apps/debugger/util/Worker.cpp @@ -342,6 +342,14 @@ Worker::ResumeJob(Job* job) } +bool +Worker::HasPendingJobs() +{ + AutoLocker locker(this); + return !fJobs.IsEmpty(); +} + + status_t Worker::AddListener(const JobKey& key, JobListener* listener) { diff --git a/src/apps/debugger/util/Worker.h b/src/apps/debugger/util/Worker.h index f0b6b176c8..c993f4dee0 100644 --- a/src/apps/debugger/util/Worker.h +++ b/src/apps/debugger/util/Worker.h @@ -149,6 +149,8 @@ public: // only valid for jobs that are // suspended pending user input + bool HasPendingJobs(); + status_t AddListener(const JobKey& key, JobListener* listener); void RemoveListener(const JobKey& key,