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 {
|
||||
public:
|
||||
KDiskDeviceJobQueue();
|
||||
KDiskDeviceJobQueue(KDiskDevice *device = NULL);
|
||||
~KDiskDeviceJobQueue();
|
||||
|
||||
status_t InitCheck() const;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user