mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk libT) have a pool of reusable evbuffers
This commit is contained in:
@@ -245,6 +245,21 @@ uint64_t tr_date( void );
|
||||
/* wait the specified number of milliseconds */
|
||||
void tr_wait( uint64_t delay_milliseconds );
|
||||
|
||||
/***
|
||||
****
|
||||
***/
|
||||
|
||||
struct evbuffer;
|
||||
|
||||
/** @brief pool of reusable buffers
|
||||
@see tr_releaseBuffer() */
|
||||
struct evbuffer * tr_getBuffer( void );
|
||||
|
||||
/** @brief return a buffer to the pool
|
||||
@see tr_getBuffer() */
|
||||
void tr_releaseBuffer( struct evbuffer * buf );
|
||||
|
||||
|
||||
/***
|
||||
****
|
||||
***/
|
||||
|
||||
Reference in New Issue
Block a user