mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
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:
parent
c8350ad011
commit
9d42715cad
9 changed files with 72 additions and 87 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "retrodb.h"
|
||||
|
||||
#define RETRODB_DEBUG
|
||||
//#define RETRODB_DEBUG
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue