diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-05-07 17:54:52 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-05-07 17:54:52 +0000 |
commit | 233100139984e7ddf250d83166c778c84b917161 (patch) | |
tree | f652391c5bf5c72abe59de9758da0a412682addc /orkbasecxx/Reporting.h | |
parent | 0ef1e5245dd3112c25001439b72386e9004cb545 (diff) |
Corrected error in reporting system where if more than one tracking server is used, only the first server gets a correct message, the rest getting the wrong messages (depending on what is in the event queue on the AudioTape object provided)
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@535 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Reporting.h')
-rw-r--r-- | orkbasecxx/Reporting.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/orkbasecxx/Reporting.h b/orkbasecxx/Reporting.h index 5446467..141a0c8 100644 --- a/orkbasecxx/Reporting.h +++ b/orkbasecxx/Reporting.h @@ -26,7 +26,8 @@ struct ReportingThreadInfo int m_numTapesToSkip; bool m_queueFullError; char m_threadId[256]; - ThreadSafeQueue<AudioTapeRef> m_audioTapeQueue; + //ThreadSafeQueue<AudioTapeRef> m_audioTapeQueue; + ThreadSafeQueue<MessageRef> m_messageQueue; ACE_Thread_Mutex m_mutex; }; typedef boost::shared_ptr<ReportingThreadInfo> ReportingThreadInfoRef; @@ -58,6 +59,7 @@ public: CStdString __CDECL__ GetName(); TapeProcessorRef __CDECL__ Instanciate(); void __CDECL__ AddAudioTape(AudioTapeRef& audioTapeRef); + void __CDECL__ AddTapeMessage(MessageRef& messageRef); void __CDECL__ SkipTapes(int number, CStdString trackingServer=""); //static Reporting* GetInstance(); |