]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blobdiff - daemon/Fifo.h
gator: Version 5.11
[android-sdk/arm-ds5-gator.git] / daemon / Fifo.h
index 548ba2788064c3a892baa649d5c683a539d61a39..b46054937c674dabedf259eecd55e82cc8ed5c31 100644 (file)
@@ -1,33 +1,33 @@
-/**\r
- * Copyright (C) ARM Limited 2010-2012. All rights reserved.\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License version 2 as\r
- * published by the Free Software Foundation.\r
- */\r
-\r
-#ifndef        __FIFO_H__\r
-#define        __FIFO_H__\r
-\r
-#include <semaphore.h>\r
-\r
-class Fifo {\r
-public:\r
-       Fifo(int singleBufferSize, int totalBufferSize);\r
-       ~Fifo();\r
-       int numBytesFilled();\r
-       bool isEmpty();\r
-       bool isFull();\r
-       bool willFill(int additional);\r
-       char* start();\r
-       char* write(int length);\r
-       char* read(int* length);\r
-\r
-private:\r
-       int             mSingleBufferSize, mWrite, mRead, mReadCommit, mRaggedEnd, mWrapThreshold;\r
-       sem_t   mWaitForSpaceSem, mWaitForDataSem;\r
-       char*   mBuffer;\r
-       bool    mEnd;\r
-};\r
-\r
-#endif         //__FIFO_H__\r
+/**
+ * Copyright (C) ARM Limited 2010-2012. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef        __FIFO_H__
+#define        __FIFO_H__
+
+#include <semaphore.h>
+
+class Fifo {
+public:
+       Fifo(int singleBufferSize, int totalBufferSize);
+       ~Fifo();
+       int numBytesFilled();
+       bool isEmpty();
+       bool isFull();
+       bool willFill(int additional);
+       char* start();
+       char* write(int length);
+       char* read(int* length);
+
+private:
+       int             mSingleBufferSize, mWrite, mRead, mReadCommit, mRaggedEnd, mWrapThreshold;
+       sem_t   mWaitForSpaceSem, mWaitForDataSem;
+       char*   mBuffer;
+       bool    mEnd;
+};
+
+#endif         //__FIFO_H__