mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 10:46:23 -04:00
detach pqistreamer threads to allow resource cleanup or re-use
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8113 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
28030f9b08
commit
32d1bd7b04
2 changed files with 7 additions and 4 deletions
|
@ -30,23 +30,23 @@
|
|||
#include "pqi/pqistreamer.h"
|
||||
#include "util/rsthreads.h"
|
||||
|
||||
class pqithreadstreamer: public pqistreamer, public RsThread
|
||||
class pqithreadstreamer: public pqistreamer, private RsThread
|
||||
{
|
||||
public:
|
||||
pqithreadstreamer(PQInterface *parent, RsSerialiser *rss, const RsPeerId& peerid, BinInterface *bio_in, int bio_flagsin);
|
||||
|
||||
virtual void run();
|
||||
virtual void start();
|
||||
virtual void shutdown();
|
||||
virtual void fullstop();
|
||||
//virtual bool threadrunning();
|
||||
|
||||
virtual bool RecvItem(RsItem *item);
|
||||
virtual int tick();
|
||||
|
||||
protected:
|
||||
// from RsThread
|
||||
virtual void run();
|
||||
|
||||
int data_tick();
|
||||
int data_tick();
|
||||
|
||||
PQInterface *mParent;
|
||||
uint32_t mTimeout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue