Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/glib/ drwxr-xr-x |
Viewing file: Select action/file-type:
Synopsis#include <glib.h> GAllocator; GAllocator* g_allocator_new (const gchar *name, guint n_preallocs); void g_allocator_free (GAllocator *allocator); DescriptionThe GAllocator is used as an efficient way to allocate small pieces of memory for use with the GList, GSList and GNode data structures. It uses a GMemChunk so elements are allocated in groups, rather than individually. The GList, GSList and GNode implementations create default GAllocator objects, which are probably sufficient for most purposes. These default allocators use blocks of 128 elements.
To use your own GAllocator, create it with Note that you cannot use the same allocator for GList, GSList and GNode elements. Each must use separate allocators. DetailsGAllocatortypedef struct _GAllocator GAllocator; The GAllocator struct contains private data. and should only be accessed using the following functions. g_allocator_new ()GAllocator* g_allocator_new (const gchar *name, guint n_preallocs); Creates a new GAllocator.
g_allocator_free ()void g_allocator_free (GAllocator *allocator); Frees all of the memory allocated by the GAllocator.
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0031 ]-- |