diff options
Diffstat (limited to 'glist.c')
-rw-r--r-- | glist.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -17,6 +17,13 @@ * Boston, MA 02111-1307, USA. */ +/* + * Modified by the GLib Team and others 1997-1999. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + /* * MT safe */ @@ -36,7 +43,7 @@ struct _GAllocator /* from gmem.c */ }; static GAllocator *current_allocator = NULL; -G_LOCK_DECLARE_STATIC (current_allocator); +G_LOCK_DEFINE_STATIC (current_allocator); /* HOLDS: current_allocator_lock */ static void @@ -102,7 +109,7 @@ g_list_alloc (void) if (!current_allocator) { GAllocator *allocator = g_allocator_new ("GLib default GList allocator", - 1024); + 128); g_list_validate_allocator (allocator); allocator->last = NULL; current_allocator = allocator; |