From 06d1877811fa6aa97dddc0e03bcde4e766928c87 Mon Sep 17 00:00:00 2001 From: vovanec Date: Thu, 7 Feb 2008 13:36:34 +0000 Subject: new directory structure git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@232 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/recycler.h | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 lib/recycler.h (limited to 'lib/recycler.h') diff --git a/lib/recycler.h b/lib/recycler.h deleted file mode 100644 index 6bb80375d..000000000 --- a/lib/recycler.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2000-2001 Brad Hughes -// -// Use, modification and distribution is allowed without limitation, -// warranty, or liability of any kind. -// - -#ifndef __recycler_h -#define __recycler_h - -#include -#include - -class Buffer; - - -class Recycler -{ -public: - Recycler(unsigned int sz); // sz = size in bytes - ~Recycler(); - - bool full() const; - bool empty() const; - - int available() const; - int used() const; - - Buffer *next(); // get next in queue - Buffer *get(unsigned long size); // get next in recycle - - void add(); // add to queue - void done(); // add to recycle - - void clear(); // clear queue - - unsigned int size() const; // size in bytes - - QMutex *mutex() { return &mtx; } - QWaitCondition *cond() { return &cnd; } - - -private: - unsigned int buffer_count, add_index, done_index, current_count; - Buffer **buffers; - QMutex mtx; - QWaitCondition cnd; -}; - -#endif // __recycler_h -- cgit v1.2.3-13-gbd6f