repo.or.cz
/
haiku.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
headers/bsd: Add sys/queue.h.
[haiku.git]
/
src
/
servers
/
media
/
Queue.h
blob
d23579d89b6ac70ce1eed7a234dcee113dbda45f
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