2005-11-17  Matthias Clasen  <mclasen@redhat.com>

	* NEWS: Updates

	* glib/gthread.c (g_thread_foreach): Mark as new api.

	* README.in: Updates.
This commit is contained in:
Matthias Clasen 2005-11-17 19:05:59 +00:00 committed by Matthias Clasen
parent 9f90f2f23e
commit 2966c751b1
8 changed files with 92 additions and 2 deletions

View File

@ -1,5 +1,11 @@
2005-11-17 Matthias Clasen <mclasen@redhat.com>
* 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):

View File

@ -1,5 +1,11 @@
2005-11-17 Matthias Clasen <mclasen@redhat.com>
* 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):

View File

@ -1,5 +1,11 @@
2005-11-17 Matthias Clasen <mclasen@redhat.com>
* 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):

56
NEWS
View File

@ -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]

View File

@ -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
======================

View File

@ -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 <mclasen@redhat.com>

View File

@ -522,6 +522,7 @@ g_thread_join
g_thread_set_priority
g_thread_yield
g_thread_exit
g_thread_foreach
<SUBSECTION>
GMutex

View File

@ -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,