Coconut Framework  beta
Functions
CNResourceLinks.h File Reference

Define CNResourceLinks data structure. More...

#include "CNResourceLink.h"
#include "CNMemoryProfile.h"

Go to the source code of this file.

Functions

struct CNResourceLinks * CNAllocateResourceLinkPool (void)
 Allocate list item pool. More...
 
struct CNResourceLinkCNAllocateResourceLink (struct CNResourceLinks *pool)
 Allocate list item from pool. More...
 
void CNReleaseResourceLink (struct CNResourceLinks *pool, struct CNResourceLink *src)
 Release list item to pool. More...
 
void CNFreeResourceLinkPool (struct CNResourceLinks *dst)
 Release all objects in the list item pool. More...
 
void CNProfileOfResourceLinkPool (struct CNMemoryProfile *dst, const struct CNResourceLinks *links)
 Get memory profile of list item pool. More...
 

Detailed Description

Define CNResourceLinks data structure.

Copyright
Copyright (C) 2012 Steel Wheels Project

Function Documentation

struct CNResourceLinks* CNAllocateResourceLinkPool ( void  )

Allocate list item pool.

Returns
Allocated pool
struct CNResourceLink* CNAllocateResourceLink ( struct CNResourceLinks *  pool)

Allocate list item from pool.

Returns
Allocated list item
Parameters
poolSource list item pool
void CNReleaseResourceLink ( struct CNResourceLinks *  pool,
struct CNResourceLink src 
)

Release list item to pool.

Parameters
poolDestination pool
srcSource list item
void CNFreeResourceLinkPool ( struct CNResourceLinks *  dst)

Release all objects in the list item pool.

Parameters
dstDestination pool
void CNProfileOfResourceLinkPool ( struct CNMemoryProfile dst,
const struct CNResourceLinks *  links 
)

Get memory profile of list item pool.

Parameters
dstDestination to store profile
linksSource list item pool