Ignore:
Timestamp:
Apr 4, 2011, 4:45:41 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.h

    r12281 r12303  
    207207    struct tr_bindinfo         * public_ipv6;
    208208
    209     /* a page-aligned buffer for use by the libtransmission thread.
    210      * @see SESSION_BUFFER_SIZE */
    211     void * buffer;
    212 
    213     bool bufferInUse;
    214 
    215209    tr_web_config_func          * curl_easy_config_func;
    216210
     
    262256{
    263257    SESSION_MAGIC_NUMBER = 3845,
    264 
    265     /* @see tr_session.buffer */
    266     SESSION_BUFFER_SIZE = (16*1024)
    267258};
    268 
    269 void* tr_sessionGetBuffer( tr_session * session );
    270 
    271 void tr_sessionReleaseBuffer( tr_session * session );
    272259
    273260static inline bool tr_isSession( const tr_session * session )
Note: See TracChangeset for help on using the changeset viewer.