From ec4ef3525f8cde206e34c5b2b268871249baca06 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 31 Jul 2003 22:46:38 +0000 Subject: [PATCH] Added a KDiskDevice* parameter to the constructor. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4172 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../private/kernel/disk_device_manager/KDiskDeviceJobQueue.h | 2 +- src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h b/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h index 3b734489f5..9a74fc505d 100644 --- a/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h +++ b/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h @@ -15,7 +15,7 @@ class KDiskDeviceJob; class KDiskDeviceJobQueue { public: - KDiskDeviceJobQueue(); + KDiskDeviceJobQueue(KDiskDevice *device = NULL); ~KDiskDeviceJobQueue(); status_t InitCheck() const; diff --git a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp index 6aa89bfdd0..a0ca345019 100644 --- a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp +++ b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp @@ -31,7 +31,7 @@ enum { struct KDiskDeviceJobQueue::JobQueue : Vector {}; // 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