mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
pqistreamer: only allocate incoming buffer when needed, free incoming buffer when not needed anymore
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8115 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e9b722a732
commit
ee68d00376
2 changed files with 35 additions and 6 deletions
|
@ -112,6 +112,9 @@ class pqistreamer: public PQInterface
|
|||
RsSerialiser *mRsSerialiser;
|
||||
|
||||
void *mPkt_wpending; // storage for pending packet to write.
|
||||
|
||||
void allocate_rpend_locked(); // use these two functions to allocate/free the buffer below
|
||||
void free_rpend_locked();
|
||||
int mPkt_rpend_size; // size of pkt_rpending.
|
||||
void *mPkt_rpending; // storage for read in pending packets.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue