gslice.h File Reference

API published in:
API deprecated in:


#include <glib/gtypes.h>

Go to the source code of this file.


Defines

#define  g_slice_new(type)   ((type*) g_slice_alloc (sizeof (type)))
#define  g_slice_new0(type)   ((type*) g_slice_alloc0 (sizeof (type)))
#define  g_slice_free(type, mem)
#define  g_slice_free_chain(type, mem_chain, next)

Enumerations

enum   GSliceConfig {
  G_SLICE_CONFIG_ALWAYS_MALLOC = 1, G_SLICE_CONFIG_BYPASS_MAGAZINES, G_SLICE_CONFIG_WORKING_SET_MSECS, G_SLICE_CONFIG_COLOR_INCREMENT,
  G_SLICE_CONFIG_CHUNK_SIZES, G_SLICE_CONFIG_CONTENTION_COUNTER
}

Functions

G_BEGIN_DECLS IMPORT_C gpointer  g_slice_alloc (gsize block_size) G_GNUC_MALLOC
IMPORT_C gpointer  g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC
IMPORT_C void  g_slice_free1 (gsize block_size, gpointer mem_block)
IMPORT_C void  g_slice_free_chain_with_offset (gsize block_size, gpointer mem_chain, gsize next_offset)
void  g_slice_set_config (GSliceConfig ckey, gint64 value)
gint64  g_slice_get_config (GSliceConfig ckey)
gint64 g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values)

Define Documentation

#define g_slice_free type,
mem   ) 
 

Value:

do {    \
  if (1) g_slice_free1 (sizeof (type), (mem));                  \
  else   (void) ((type*) 0 == (mem));                           \
} while (0)
#define g_slice_free_chain type,
mem_chain,
next   ) 
 

Value:

do {    \
  if (1) g_slice_free_chain_with_offset (sizeof (type),         \
                 (mem_chain), G_STRUCT_OFFSET (type, next));    \
  else   (void) ((type*) 0 == (mem_chain));                     \
} while (0)
#define g_slice_new type   )     ((type*) g_slice_alloc (sizeof (type)))
 
#define g_slice_new0 type   )     ((type*) g_slice_alloc0 (sizeof (type)))
 

Enumeration Type Documentation

enum GSliceConfig
 
Enumerator:
G_SLICE_CONFIG_ALWAYS_MALLOC 
G_SLICE_CONFIG_BYPASS_MAGAZINES 
G_SLICE_CONFIG_WORKING_SET_MSECS 
G_SLICE_CONFIG_COLOR_INCREMENT 
G_SLICE_CONFIG_CHUNK_SIZES 
G_SLICE_CONFIG_CONTENTION_COUNTER 

Function Documentation

G_BEGIN_DECLS IMPORT_C gpointer g_slice_alloc gsize  block_size  ) 
 
IMPORT_C gpointer g_slice_alloc0 gsize  block_size  ) 
 
IMPORT_C void g_slice_free1 gsize  block_size,
gpointer  mem_block
 
IMPORT_C void g_slice_free_chain_with_offset gsize  block_size,
gpointer  mem_chain,
gsize  next_offset
 
gint64 g_slice_get_config GSliceConfig  ckey  ) 
 
gint64* g_slice_get_config_state GSliceConfig  ckey,
gint64  address,
guint n_values
 
void g_slice_set_config GSliceConfig  ckey,
gint64  value
 

Copyright © Nokia Corporation 2001-2008
Back to top