1 /* 2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _DISK_DEVICE_JOB_QUEUE_H 6 #define _DISK_DEVICE_JOB_QUEUE_H 7 8 #include <DiskDeviceDefs.h> 9 #include <ObjectList.h> 10 11 12 namespace BPrivate { 13 14 15 class DiskDeviceJob; 16 17 18 class DiskDeviceJobQueue { 19 public: 20 DiskDeviceJobQueue(); 21 ~DiskDeviceJobQueue(); 22 23 status_t AddJob(DiskDeviceJob* job); 24 25 status_t Execute(); 26 27 private: 28 typedef BObjectList<DiskDeviceJob> JobList; 29 30 JobList fJobs; 31 }; 32 33 34 } // namespace BPrivate 35 36 using BPrivate::DiskDeviceJobQueue; 37 38 #endif // _DISK_DEVICE_JOB_QUEUE_H 39