|
FreeRDP
|
#include <winpr/config.h>#include <winpr/crt.h>#include <winpr/wlog.h>#include <winpr/collections.h>#include "../stream.h"Functions | |
| static INLINE void | StreamPool_Lock (wStreamPool *pool) |
| static INLINE void | StreamPool_Unlock (wStreamPool *pool) |
| static BOOL | StreamPool_EnsureCapacity (wStreamPool *pool, size_t count, BOOL usedOrAvailable) |
| static void | StreamPool_ShiftUsed (wStreamPool *pool, size_t index, INT64 count) |
| static void | StreamPool_AddUsed (wStreamPool *pool, wStream *s) |
| static void | StreamPool_RemoveUsed (wStreamPool *pool, wStream *s) |
| static void | StreamPool_ShiftAvailable (wStreamPool *pool, size_t index, INT64 count) |
| wStream * | StreamPool_Take (wStreamPool *pool, size_t size) |
| static void | StreamPool_Remove (wStreamPool *pool, wStream *s) |
| static void | StreamPool_ReleaseOrReturn (wStreamPool *pool, wStream *s) |
| void | StreamPool_Return (wStreamPool *pool, wStream *s) |
| void | Stream_AddRef (wStream *s) |
| void | Stream_Release (wStream *s) |
| wStream * | StreamPool_Find (wStreamPool *pool, BYTE *ptr) |
| void | StreamPool_Clear (wStreamPool *pool) |
| wStreamPool * | StreamPool_New (BOOL synchronized, size_t defaultSize) |
| void | StreamPool_Free (wStreamPool *pool) |
| char * | StreamPool_GetStatistics (wStreamPool *pool, char *buffer, size_t size) |
| void Stream_AddRef | ( | wStream * | s | ) |
Increment stream reference count


| void Stream_Release | ( | wStream * | s | ) |
Decrement stream reference count

|
static |
Adds a used stream to the pool.


| void StreamPool_Clear | ( | wStreamPool * | pool | ) |
Releases the streams currently cached in the pool.


|
static |


Find stream in pool using pointer inside buffer

| void StreamPool_Free | ( | wStreamPool * | pool | ) |


| char* StreamPool_GetStatistics | ( | wStreamPool * | pool, |
| char * | buffer, | ||
| size_t | size | ||
| ) |

|
static |
Lock the stream pool


| wStreamPool* StreamPool_New | ( | BOOL | synchronized, |
| size_t | defaultSize | ||
| ) |
Construction, Destruction


|
static |


|
static |
Returns an object to the pool.


|
static |
Removes a used stream from the pool.


| void StreamPool_Return | ( | wStreamPool * | pool, |
| wStream * | s | ||
| ) |


|
static |


|
static |
Methods


| wStream* StreamPool_Take | ( | wStreamPool * | pool, |
| size_t | size | ||
| ) |
Gets a stream from the pool.


|
static |
Unlock the stream pool

