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

Functions

static void ObjectPool_Lock (wObjectPool *pool)
 
static void ObjectPool_Unlock (wObjectPool *pool)
 
void * ObjectPool_Take (wObjectPool *pool)
 
void ObjectPool_Return (wObjectPool *pool, void *obj)
 
wObjectObjectPool_Object (wObjectPool *pool)
 
void ObjectPool_Clear (wObjectPool *pool)
 
wObjectPool * ObjectPool_New (BOOL synchronized)
 
void ObjectPool_Free (wObjectPool *pool)
 

Function Documentation

◆ ObjectPool_Clear()

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:

◆ ObjectPool_Free()

void ObjectPool_Free ( wObjectPool *  pool)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ObjectPool_Lock()

static void ObjectPool_Lock ( wObjectPool *  pool)
static

C Object Pool similar to C# BufferManager Class: http://msdn.microsoft.com/en-us/library/ms405814.aspx Methods

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ObjectPool_New()

wObjectPool* ObjectPool_New ( BOOL  synchronized)

Construction, Destruction

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ObjectPool_Object()

wObject* ObjectPool_Object ( wObjectPool *  pool)
Here is the caller graph for this function:

◆ ObjectPool_Return()

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:

◆ ObjectPool_Take()

void* ObjectPool_Take ( wObjectPool *  pool)

Gets an object from the pool.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ObjectPool_Unlock()

static void ObjectPool_Unlock ( wObjectPool *  pool)
static
Here is the call graph for this function:
Here is the caller graph for this function: