GCS
0.2.3
Main Page
Data Structures
Files
File List
Globals
src
gcs_gcache.h
1
/*
2
* Copyright (C) 2011 Codership Oy <info@codership.com>
3
*
4
* $Id$
5
*/
6
7
#ifndef _gcs_gcache_h_
8
#define _gcs_gcache_h_
9
10
#include <gcache.h>
11
12
static
inline
void
*
13
gcs_gcache_malloc (gcache_t* gcache,
size_t
size)
14
{
15
if
(gu_likely(gcache != NULL))
16
return
gcache_malloc (gcache, size);
17
else
18
return
malloc (size);
19
}
20
21
static
inline
void
22
gcs_gcache_free (gcache_t* gcache,
const
void
* buf)
23
{
24
#ifndef GCS_FOR_GARB
25
if
(gu_likely (gcache != NULL))
26
gcache_free (gcache, buf);
27
else
28
#endif
29
free ((
void
*)buf);
30
}
31
32
#endif
/* _gcs_gcache_h_ */
Generated on Tue Sep 16 2014 09:07:48 for GCS by
1.8.7