mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 20:06:38 -05:00
Added a thread per active peer - to reduce RTT and increase throughout.
* Added pqithreadstreamer, tweaked pqistreamer to support derivation. * Shifted RTT from p3Service to p3FastService. * Disabled lots of debug. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-initdev@6787 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a7dd9ad9e3
commit
b587301b5a
22 changed files with 658 additions and 1414 deletions
|
|
@ -62,6 +62,11 @@ class pqistreamer: public PQInterface
|
|||
virtual void getRates(RsBwRates &rates);
|
||||
virtual int getQueueSize(bool in); // extracting data.
|
||||
protected:
|
||||
|
||||
int tick_bio();
|
||||
int tick_send(uint32_t timeout);
|
||||
int tick_recv(uint32_t timeout);
|
||||
|
||||
/* Implementation */
|
||||
|
||||
// These methods are redefined in pqiQoSstreamer
|
||||
|
|
@ -76,6 +81,10 @@ class pqistreamer: public PQInterface
|
|||
protected:
|
||||
RsMutex mStreamerMtx ; // Protects data, fns below, protected so pqiqos can use it too.
|
||||
|
||||
// Binary Interface for IO, initialisated at startup.
|
||||
BinInterface *mBio;
|
||||
unsigned int mBio_flags; // BIN_FLAGS_NO_CLOSE | BIN_FLAGS_NO_DELETE
|
||||
|
||||
private:
|
||||
int queue_outpqi_locked(RsItem *i,uint32_t& serialized_size);
|
||||
int handleincomingitem_locked(RsItem *i);
|
||||
|
|
@ -98,9 +107,6 @@ class pqistreamer: public PQInterface
|
|||
|
||||
// RsSerialiser - determines which packets can be serialised.
|
||||
RsSerialiser *mRsSerialiser;
|
||||
// Binary Interface for IO, initialisated at startup.
|
||||
BinInterface *mBio;
|
||||
unsigned int mBio_flags; // BIN_FLAGS_NO_CLOSE | BIN_FLAGS_NO_DELETE
|
||||
|
||||
void *mPkt_wpending; // storage for pending packet to write.
|
||||
int mPkt_rpend_size; // size of pkt_rpending.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue