[Haiku-commits] r31141 - haiku/trunk/src/apps/debugger
bonefish at BerliOS
bonefish at mail.berlios.de
Sat Jun 20 18:49:32 CEST 2009
Author: bonefish
Date: 2009-06-20 18:49:31 +0200 (Sat, 20 Jun 2009)
New Revision: 31141
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31141&view=rev
Modified:
haiku/trunk/src/apps/debugger/Worker.cpp
haiku/trunk/src/apps/debugger/Worker.h
Log:
Added Worker::GetJob() to get a known job by key.
Modified: haiku/trunk/src/apps/debugger/Worker.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/Worker.cpp 2009-06-20 15:47:28 UTC (rev 31140)
+++ haiku/trunk/src/apps/debugger/Worker.cpp 2009-06-20 16:49:31 UTC (rev 31141)
@@ -247,6 +247,14 @@
}
+Job*
+Worker::GetJob(const JobKey& key)
+{
+ AutoLocker<Worker> locker(this);
+ return fJobs.Lookup(key);
+}
+
+
status_t
Worker::AddListener(const JobKey& key, JobListener* listener)
{
Modified: haiku/trunk/src/apps/debugger/Worker.h
===================================================================
--- haiku/trunk/src/apps/debugger/Worker.h 2009-06-20 15:47:28 UTC (rev 31140)
+++ haiku/trunk/src/apps/debugger/Worker.h 2009-06-20 16:49:31 UTC (rev 31141)
@@ -146,6 +146,7 @@
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);
More information about the Haiku-commits
mailing list