Added JobFactory().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-08-01 23:59:26 +00:00
parent 1217079c31
commit 84ba3a5265
2 changed files with 10 additions and 0 deletions

View File

@ -87,6 +87,8 @@ public:
int32 CountJobQueues();
KDiskDeviceJobQueue *NextJobQueue(int32 *cookie);
KDiskDeviceJobFactory *JobFactory() const;
// Disk Systems
// manager must be locked

View File

@ -650,6 +650,7 @@ KDiskDeviceManager::AddJobQueue(KDiskDeviceJobQueue *jobQueue)
return error;
}
}
// TODO: mark the concerned partitions busy /descendant busy
// start its execution
error = jobQueue->Execute();
if (error != B_OK)
@ -696,6 +697,13 @@ KDiskDeviceManager::NextJobQueue(int32 *cookie)
return fJobQueues->ElementAt((*cookie)++);
}
// JobFactory
KDiskDeviceJobFactory *
KDiskDeviceManager::JobFactory() const
{
return fJobFactory;
}
// FindDiskSystem
KDiskSystem *
KDiskDeviceManager::FindDiskSystem(const char *name)