diff options
author | Henri Herscher <henri@oreka.org> | 2006-03-02 16:11:12 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-03-02 16:11:12 +0000 |
commit | 6d301a8dadf98464952912db2646e68df15b347f (patch) | |
tree | 1f0f3bb33c567bfecbf1e302c657324bda2975e9 /orkaudio/BatchProcessing.h | |
parent | 8dcf8fc31fca9820efe23b6aa82633624bbc15ff (diff) |
OrkTrack can now ask for tape deletion
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@189 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/BatchProcessing.h')
-rw-r--r-- | orkaudio/BatchProcessing.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/orkaudio/BatchProcessing.h b/orkaudio/BatchProcessing.h index 73a62f0..3c50bbf 100644 --- a/orkaudio/BatchProcessing.h +++ b/orkaudio/BatchProcessing.h @@ -17,6 +17,7 @@ #include "ThreadSafeQueue.h" #include "AudioTape.h" #include "ace/Thread_Mutex.h" +#include <map> class BatchProcessing { @@ -25,14 +26,23 @@ public: static void ThreadHandler(void *args); void AddAudioTape(AudioTapeRef audioTapeRef); + /** Ask for a tape to be deleted from disk */ + void TapeDropRegistration(CStdString& filename); private: BatchProcessing(); + bool DropTapeIfNeeded(CStdString&filename); + void TapeDropHousekeeping(); + static BatchProcessing m_batchProcessingSingleton; ThreadSafeQueue<AudioTapeRef> m_audioTapeQueue; size_t m_threadCount; ACE_Thread_Mutex m_mutex; + + ACE_Thread_Mutex m_tapeDropMutex; + std::map<CStdString, time_t> m_tapesToDrop; + int m_currentDay; }; #endif |