Added a KDiskDevice* parameter to the constructor.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4172 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-07-31 22:46:38 +00:00
parent 57c8af057e
commit ec4ef3525f
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class KDiskDeviceJob;
class KDiskDeviceJobQueue {
public:
KDiskDeviceJobQueue();
KDiskDeviceJobQueue(KDiskDevice *device = NULL);
~KDiskDeviceJobQueue();
status_t InitCheck() const;

View File

@ -31,7 +31,7 @@ enum {
struct KDiskDeviceJobQueue::JobQueue : Vector<KDiskDeviceJob*> {};
// constructor
KDiskDeviceJobQueue::KDiskDeviceJobQueue()
KDiskDeviceJobQueue::KDiskDeviceJobQueue(KDiskDevice *device)
: fDevice(NULL),
fActiveJob(0),
fJobs(NULL),
@ -40,6 +40,7 @@ KDiskDeviceJobQueue::KDiskDeviceJobQueue()
fSyncSemaphore(-1)
{
fJobs = new(nothrow) JobQueue;
SetDevice(device);
}
// destructor