xref: /haiku/src/servers/media/Queue.h (revision 5d9e40fe9252c8f9c5e5e41594545bfa4419fcc7)
1 /*
2  * Copyright 2002, Marcus Overhagen. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 class Queue
7 {
8 public:
9 	Queue();
10 	~Queue();
11 
12 	status_t	Terminate();
13 
14 	status_t	AddItem(void *item);
15 	void *		RemoveItem();
16 
17 private:
18 	BList		*fList;
19 	BLocker		*fLocker;
20 	sem_id		fSem;
21 };
22