CAEN Utility  2.0.2
Utilities for CAEN projects
CAENAllocator.c File Reference
#include <CAENAllocator.h>
#include <CAENMultiplatform.h>
#include <CAENLinkedList.h>
Include dependency graph for CAENAllocator.c:

Go to the source code of this file.

Data Structures

struct  _c_resource_t
 

Functions

c_allocator_t c_allocator_create ()
 
void * c_allocator_resource_create (c_allocator_t *allocator, c_resource_destroy_function df, void *resource)
 
void * c_allocator_malloc (c_allocator_t *allocator, size_t size)
 
void * c_allocator_calloc (c_allocator_t *allocator, size_t nmemb, size_t size)
 
int32_t c_allocator_error_count (const c_allocator_t *allocator)
 
static int _resource_comparator (const void *r, const void *d)
 
static void _allocator_release_or_destroy (c_allocator_t *allocator, void *ptr, bool destroy)
 
void c_allocator_release (c_allocator_t *allocator, void *ptr)
 
void c_allocator_clear (c_allocator_t *allocator)
 
void c_allocator_free (c_allocator_t *allocator, void *ptr)
 
void c_allocator_freeall (c_allocator_t *allocator)
 

Function Documentation

◆ _resource_comparator()

static int _resource_comparator ( const void *  r,
const void *  d 
)
static

Definition at line 98 of file CAENAllocator.c.

Here is the caller graph for this function:

◆ _allocator_release_or_destroy()

static void _allocator_release_or_destroy ( c_allocator_t allocator,
void *  ptr,
bool  destroy 
)
static

Definition at line 104 of file CAENAllocator.c.

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