aboutsummaryrefslogtreecommitdiff
path: root/include/Fifo.h
diff options
context:
space:
mode:
authorN.N <matju@users.sourceforge.net>2009-12-14 19:55:54 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:04:53 +0200
commitc235f09fc5ef83827ac53375015f469cd7e13eec (patch)
tree4639e88e27e105709a2bbd6352cec17808fdc5c9 /include/Fifo.h
parent40194041a1efbf98c45185098e3795150a0128a4 (diff)
import version 0.36
svn path=/trunk/externals/august/readanysf~/; revision=12836
Diffstat (limited to 'include/Fifo.h')
-rw-r--r--include/Fifo.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/Fifo.h b/include/Fifo.h
deleted file mode 100644
index c060079..0000000
--- a/include/Fifo.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef _FIFO_H_
-#define _FIFO_H_
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-
-#include <memory.h>
-#include <pthread.h>
-
-class Fifo
-{
- public:
- Fifo();
- Fifo(unsigned int size);
- ~Fifo();
- void Flush();
- int IsAlloc(void) { return astate; }
- int ReAlloc(unsigned int size);
- void * Read(void *buf, unsigned int &len);
- int Write(void *buf, unsigned int len);
- unsigned int FreeSpace(void);
- unsigned int UsedSpace(void);
- private:
- char *buffer;
- unsigned int astate;
- unsigned int totsize, start, datasize;
- pthread_mutex_t mut;
-};
-#endif