Fixes for Gxs msg retrieval:

msgId retrieval fixed, including incorrect stack mtx lock
msgRelatedId retrieval fixed, mem leak removed (did not clean meta)
msg data retrieval fixed 

added related tests 

RsThread::start now initialises mIsRunning to true, needed to unit tear
down on gxs test system.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5471 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2012-08-25 15:48:55 +00:00
parent c8350ad011
commit 9d42715cad
9 changed files with 72 additions and 87 deletions

View file

@ -30,7 +30,7 @@
#include "retrodb.h"
#define RETRODB_DEBUG
//#define RETRODB_DEBUG

View file

@ -119,7 +119,7 @@ class RsThread
RsThread();
virtual ~RsThread() {}
virtual void start() { createThread(*this); }
virtual void start() { mIsRunning = true; createThread(*this); }
virtual void run() = 0; /* called once the thread is started */
virtual void join(); /* waits for the the mTid thread to stop */
virtual void stop(); /* calls pthread_exit() */