FreeRDP
StreamPool.c File Reference
#include <winpr/crt.h>
#include <winpr/collections.h>

Functions

void StreamPool_ShiftUsed (wStreamPool *pool, int index, int count)
 
void StreamPool_AddUsed (wStreamPool *pool, wStream *s)
 
void StreamPool_RemoveUsed (wStreamPool *pool, wStream *s)
 
void StreamPool_ShiftAvailable (wStreamPool *pool, int index, int count)
 
wStream * StreamPool_Take (wStreamPool *pool, size_t size)
 
void StreamPool_Return (wStreamPool *pool, wStream *s)
 
void StreamPool_Lock (wStreamPool *pool)
 
void StreamPool_Unlock (wStreamPool *pool)
 
void Stream_AddRef (wStream *s)
 
void Stream_Release (wStream *s)
 
wStream * StreamPool_Find (wStreamPool *pool, BYTE *ptr)
 
void StreamPool_AddRef (wStreamPool *pool, BYTE *ptr)
 
void StreamPool_Release (wStreamPool *pool, BYTE *ptr)
 
void StreamPool_Clear (wStreamPool *pool)
 
wStreamPool * StreamPool_New (BOOL synchronized, size_t defaultSize)
 
void StreamPool_Free (wStreamPool *pool)
 

Function Documentation

void Stream_AddRef ( wStream *  s)

Increment stream reference count

Here is the call graph for this function:

Here is the caller graph for this function:

void Stream_Release ( wStream *  s)

Decrement stream reference count

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_AddRef ( wStreamPool *  pool,
BYTE ptr 
)

Find stream in pool and increment reference count

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_AddUsed ( wStreamPool *  pool,
wStream *  s 
)

Adds a used stream to the pool.

Here is the caller graph for this function:

void StreamPool_Clear ( wStreamPool *  pool)

Releases the streams currently cached in the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

wStream* StreamPool_Find ( wStreamPool *  pool,
BYTE ptr 
)

Find stream in pool using pointer inside buffer

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_Free ( wStreamPool *  pool)

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_Lock ( wStreamPool *  pool)

Lock the stream pool

Here is the call graph for this function:

Here is the caller graph for this function:

wStreamPool* StreamPool_New ( BOOL  synchronized,
size_t  defaultSize 
)

Construction, Destruction

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_Release ( wStreamPool *  pool,
BYTE ptr 
)

Find stream in pool and decrement reference count

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_RemoveUsed ( wStreamPool *  pool,
wStream *  s 
)

Removes a used stream from the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_Return ( wStreamPool *  pool,
wStream *  s 
)

Returns an object to the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_ShiftAvailable ( wStreamPool *  pool,
int  index,
int  count 
)

Here is the caller graph for this function:

void StreamPool_ShiftUsed ( wStreamPool *  pool,
int  index,
int  count 
)

WinPR: Windows Portable Runtime Object Pool

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Methods

Here is the caller graph for this function:

wStream* StreamPool_Take ( wStreamPool *  pool,
size_t  size 
)

Gets a stream from the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

void StreamPool_Unlock ( wStreamPool *  pool)

Unlock the stream pool

Here is the call graph for this function:

Here is the caller graph for this function: