headers/bsd: Add sys/queue.h.
[haiku.git] / src / servers / media / Queue.h
blobd23579d89b6ac70ce1eed7a234dcee113dbda45f
1 /*
2 * Copyright 2002, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef QUEUE_H
6 #define QUEUE_H
9 #include <List.h>
10 #include <Locker.h>
13 class Queue : BLocker {
14 public:
15 Queue();
16 ~Queue();
18 status_t Terminate();
20 status_t AddItem(void* item);
21 void* RemoveItem();
23 private:
24 BList fList;
25 sem_id fSem;
29 #endif // QUEUE_H