headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / storage / disk_device / DiskDeviceJobQueue.h
blobeee931caee687c8d139a111a15ca8a9d3b85693a
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
8 #include <DiskDeviceDefs.h>
9 #include <ObjectList.h>
12 namespace BPrivate {
15 class DiskDeviceJob;
18 class DiskDeviceJobQueue {
19 public:
20 DiskDeviceJobQueue();
21 ~DiskDeviceJobQueue();
23 status_t AddJob(DiskDeviceJob* job);
25 status_t Execute();
27 private:
28 typedef BObjectList<DiskDeviceJob> JobList;
30 JobList fJobs;
34 } // namespace BPrivate
36 using BPrivate::DiskDeviceJobQueue;
38 #endif // _DISK_DEVICE_JOB_QUEUE_H