From 2966c751b12200f838612645fbccd7704915d5dc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 17 Nov 2005 19:05:59 +0000 Subject: [PATCH] Updates 2005-11-17 Matthias Clasen * NEWS: Updates * glib/gthread.c (g_thread_foreach): Mark as new api. * README.in: Updates. --- ChangeLog | 6 ++++ ChangeLog.pre-2-10 | 6 ++++ ChangeLog.pre-2-12 | 6 ++++ NEWS | 56 +++++++++++++++++++++++++++++++++++ README.in | 11 +++++++ docs/reference/ChangeLog | 2 +- docs/reference/glib/glib-sections.txt | 1 + glib/gthread.c | 6 +++- 8 files changed, 92 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b527b1a..d2a09dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2005-11-17 Matthias Clasen + * NEWS: Updates + + * glib/gthread.c (g_thread_foreach): Mark as new api. + + * README.in: Updates. + * glib/glib.symbols: * glib/gdate.h: * glib/gdate.c (g_date_set_time_t): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b527b1a..d2a09dd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,11 @@ 2005-11-17 Matthias Clasen + * NEWS: Updates + + * glib/gthread.c (g_thread_foreach): Mark as new api. + + * README.in: Updates. + * glib/glib.symbols: * glib/gdate.h: * glib/gdate.c (g_date_set_time_t): diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index b527b1a..d2a09dd 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,11 @@ 2005-11-17 Matthias Clasen + * NEWS: Updates + + * glib/gthread.c (g_thread_foreach): Mark as new api. + + * README.in: Updates. + * glib/glib.symbols: * glib/gdate.h: * glib/gdate.c (g_date_set_time_t): diff --git a/NEWS b/NEWS index 2a88b04..9d61b0d 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,59 @@ +Overview of Changes from GLib 2.8.x to GLib 2.9.0 +================================================= +* Unicode support: + - The Unicode tables have been updated to Unicode 4.1, + adding several new values to the GUnicodeBreakType + enumeration. This breaks Pango <= 1.10 + [Behdad Esfahbod] + - The various Unicode character predicate functions + (g_unichar_isalpha, g_unichar_isdigit,...) have + been optimized + [Behdad] + - g_utf8_pointer_to_offset, g_utf8_offset_to_pointer: + These functions handle negative offsets now, and + going backwards in g_utf8_offset_to_pointer uses + "stutter stepping". + [Larry Ewing, Matthias Clasen] + +* Memory management: + - Mem chunks are no longer used internally in GLib and + GObject. GMemChunk will be deprecated in GLib 2.10 + - All APIs based on GAllocator (g_list_push/pop_allocator, + and similar push/pop_allocator functions for other + data structures) have been deprecated, since they + never worked as intended. + - The g_slice_* functions have been added as a + new API for fast allocation of small memory blocks. + The implementation in GLib 2.9.0 is just a simple + wrapper around malloc. GLib 2.10 will have an + efficient and scalable implementation. + [Tim Janik, Matthias] + +* Pattern matching: + - g_pattern_match has been optimized to avoid + unnecessary recursion. + [Tim, Matthias] + +* g_intern_string, g_intern_static_string: + - New functions to intern strings. These are now used + by GObject to avoid duplicating static strings + [Matthias] + +* g_thread_foreach: + - New function to iterate over all GThreads + [Tim, Matthias] + +* g_date_set_time_t, g_date_set_time_val: + - New functions to set a GDate from a time_t or + GTimeVal value. g_date_set_time has been deprecated + in favor of these. + [Roger Leigh] + +* g_snprintf and g_vsnprintf: + - These functions are no longer declared in gprintf.h, + since they are in glib.h + [Matthias] + Overview of Changes from GLib 2.8.0 to GLib 2.8.1 ================================================= * Optimize single-character insertions in GString [Ross Burton] diff --git a/README.in b/README.in index 5a1ce5e..6ec5b0c 100644 --- a/README.in +++ b/README.in @@ -24,6 +24,17 @@ Installation See the file 'INSTALL' +Notes about GLib 2.10 +===================== + +* The functions g_snprintf() and g_vsnprintf() have been removed from + the gprintf.h header, since they are already declared in glib.h. This + doesn't break documented use of gprintf.h, but people have been known + to include gprintf.h without including glib.h. + +* The Unicode support has been updated to Unicode 4.1. This adds several + new members to the GUnicodeBreakType enumeration. + Notes about GLib 2.6.0 ====================== diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 42c274c..0f7b5c9 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -2,7 +2,7 @@ * glib/tmpl/date.sgml: * glib/glib-sections.txt: Add g_date_set_time_t, - g_date_set_time_val. + g_date_set_time_val and g_thread_foreach 2005-11-08 Matthias Clasen diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index efae15c..c3e1fdf 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -522,6 +522,7 @@ g_thread_join g_thread_set_priority g_thread_yield g_thread_exit +g_thread_foreach GMutex diff --git a/glib/gthread.c b/glib/gthread.c index ee2dcbc..17cee7f 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -894,14 +894,18 @@ _g_thread_mem_private_set (GThread *thread, * g_thread_foreach * @thread_func: function to call for all GThread structures * @user_data: second argument to @thread_func - * Call @thread_func on all existing GThread structures. Note that + * + * Call @thread_func on all existing #GThread structures. Note that * threads may decide to exit while @thread_func is running, so * without intimate knowledge about the lifetime of foreign threads, * @thread_func shouldn't access the GThread* pointer passed in as * first argument. However, @thread_func will not be called for threads * which are known to have exited already. + * * Due to thread lifetime checks, this function has an execution complexity * which is quadratic in the number of existing threads. + * + * Since: 2.10 */ void g_thread_foreach (GFunc thread_func, -- 2.7.4