diff options
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 |