Added JobFactory().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -87,6 +87,8 @@ public:
|
|||||||
int32 CountJobQueues();
|
int32 CountJobQueues();
|
||||||
KDiskDeviceJobQueue *NextJobQueue(int32 *cookie);
|
KDiskDeviceJobQueue *NextJobQueue(int32 *cookie);
|
||||||
|
|
||||||
|
KDiskDeviceJobFactory *JobFactory() const;
|
||||||
|
|
||||||
// Disk Systems
|
// Disk Systems
|
||||||
|
|
||||||
// manager must be locked
|
// manager must be locked
|
||||||
|
|||||||
@@ -650,6 +650,7 @@ KDiskDeviceManager::AddJobQueue(KDiskDeviceJobQueue *jobQueue)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// TODO: mark the concerned partitions busy /descendant busy
|
||||||
// start its execution
|
// start its execution
|
||||||
error = jobQueue->Execute();
|
error = jobQueue->Execute();
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
@@ -696,6 +697,13 @@ KDiskDeviceManager::NextJobQueue(int32 *cookie)
|
|||||||
return fJobQueues->ElementAt((*cookie)++);
|
return fJobQueues->ElementAt((*cookie)++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// JobFactory
|
||||||
|
KDiskDeviceJobFactory *
|
||||||
|
KDiskDeviceManager::JobFactory() const
|
||||||
|
{
|
||||||
|
return fJobFactory;
|
||||||
|
}
|
||||||
|
|
||||||
// FindDiskSystem
|
// FindDiskSystem
|
||||||
KDiskSystem *
|
KDiskSystem *
|
||||||
KDiskDeviceManager::FindDiskSystem(const char *name)
|
KDiskDeviceManager::FindDiskSystem(const char *name)
|
||||||
|
|||||||
Reference in New Issue
Block a user