2
queues frames in a "empty" and "data" queue
3
Copyright (C) 2001 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
15
#ifndef __IOFRAMEQUEUE_H
16
#define __IOFRAMEQUEUE_H
18
#include "frameQueue.h"
21
This class can store up to <size> frames.
22
The frames are marked "empty" these frames can be re-used
24
The other queue stores "data" frames. These frames can
25
be dequeued and then are be passed to the "empty" queue.
27
Note: you need to _fill_ the empty queue with allocated frames,
28
after constructions. The pointers then are owned by this
29
class (== deleted in destructor)
37
IOFrameQueue(int size);
43
int emptyQueueCanRead();
44
int emptyQueueCanWrite();
50
int dataQueueCanRead();
51
int dataQueueCanWrite();