diff --git a/src/apps/debugger/Worker.cpp b/src/apps/debugger/Worker.cpp index 584ce648a6..ace1d966f8 100644 --- a/src/apps/debugger/Worker.cpp +++ b/src/apps/debugger/Worker.cpp @@ -247,6 +247,14 @@ Worker::AbortJob(const JobKey& key) } +Job* +Worker::GetJob(const JobKey& key) +{ + AutoLocker locker(this); + return fJobs.Lookup(key); +} + + status_t Worker::AddListener(const JobKey& key, JobListener* listener) { diff --git a/src/apps/debugger/Worker.h b/src/apps/debugger/Worker.h index 5a8069df20..8a15c7d35d 100644 --- a/src/apps/debugger/Worker.h +++ b/src/apps/debugger/Worker.h @@ -146,6 +146,7 @@ public: JobListener* listener = NULL); // always takes over ownership void AbortJob(const JobKey& key); + Job* GetJob(const JobKey& key); status_t AddListener(const JobKey& key, JobListener* listener);