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
13class Queue : BLocker {
14public:
15								Queue();
16								~Queue();
17
18			status_t			Terminate();
19
20			status_t			AddItem(void* item);
21			void*				RemoveItem();
22
23private:
24			BList				fList;
25			sem_id				fSem;
26};
27
28
29#endif	// QUEUE_H
30