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:
parent
57c8af057e
commit
ec4ef3525f
@ -15,7 +15,7 @@ class KDiskDeviceJob;
|
|||||||
|
|
||||||
class KDiskDeviceJobQueue {
|
class KDiskDeviceJobQueue {
|
||||||
public:
|
public:
|
||||||
KDiskDeviceJobQueue();
|
KDiskDeviceJobQueue(KDiskDevice *device = NULL);
|
||||||
~KDiskDeviceJobQueue();
|
~KDiskDeviceJobQueue();
|
||||||
|
|
||||||
status_t InitCheck() const;
|
status_t InitCheck() const;
|
||||||
|
@ -31,7 +31,7 @@ enum {
|
|||||||
struct KDiskDeviceJobQueue::JobQueue : Vector<KDiskDeviceJob*> {};
|
struct KDiskDeviceJobQueue::JobQueue : Vector<KDiskDeviceJob*> {};
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
KDiskDeviceJobQueue::KDiskDeviceJobQueue()
|
KDiskDeviceJobQueue::KDiskDeviceJobQueue(KDiskDevice *device)
|
||||||
: fDevice(NULL),
|
: fDevice(NULL),
|
||||||
fActiveJob(0),
|
fActiveJob(0),
|
||||||
fJobs(NULL),
|
fJobs(NULL),
|
||||||
@ -40,6 +40,7 @@ KDiskDeviceJobQueue::KDiskDeviceJobQueue()
|
|||||||
fSyncSemaphore(-1)
|
fSyncSemaphore(-1)
|
||||||
{
|
{
|
||||||
fJobs = new(nothrow) JobQueue;
|
fJobs = new(nothrow) JobQueue;
|
||||||
|
SetDevice(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
// destructor
|
// destructor
|
||||||
|
Loading…
Reference in New Issue
Block a user