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

Functions

voidObjectPool_Take (wObjectPool *pool)
 
void ObjectPool_Return (wObjectPool *pool, void *obj)
 
void ObjectPool_Clear (wObjectPool *pool)
 
wObjectPool * ObjectPool_New (BOOL synchronized)
 
void ObjectPool_Free (wObjectPool *pool)
 

Function Documentation

void ObjectPool_Clear ( wObjectPool *  pool)

Releases the buffers currently cached in the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

void ObjectPool_Free ( wObjectPool *  pool)

Here is the call graph for this function:

Here is the caller graph for this function:

wObjectPool* ObjectPool_New ( BOOL  synchronized)

Construction, Destruction

Here is the call graph for this function:

Here is the caller graph for this function:

void ObjectPool_Return ( wObjectPool *  pool,
void obj 
)

Returns an object to the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

void* ObjectPool_Take ( wObjectPool *  pool)

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. C Object Pool similar to C# BufferManager Class: http://msdn.microsoft.com/en-us/library/ms405814.aspx Methods Gets an object from the pool.

Here is the call graph for this function:

Here is the caller graph for this function: