xref: /haiku/src/servers/media/Queue.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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
7 
8 
9 #include <List.h>
10 #include <Locker.h>
11 
12 
13 class Queue : BLocker {
14 public:
15 								Queue();
16 								~Queue();
17 
18 			status_t			Terminate();
19 
20 			status_t			AddItem(void* item);
21 			void*				RemoveItem();
22 
23 private:
24 			BList				fList;
25 			sem_id				fSem;
26 };
27 
28 
29 #endif	// QUEUE_H
30