Commit Graph

46 Commits

Author SHA1 Message Date
Dan Winship
86866a2a6d gtask: remove hardcoded GTask thread-pool size
GTask used a 10-thread thread pool for g_task_run_in_thread() /
g_task_run_in_thread_sync(), but this ran into problems when task
threads blocked waiting for another g_task_run_in_thread_sync()
operation to complete. Previously there was a workaround for this, by
bumping up the thread limit when that case was detected, but deadlocks
could still happen if there were non-GTask threads involved. (Eg, task
A sends a message to thread X and waits for a response, but thread X
needs to complete task B in a thread before returning the response to
task A.)

So, allow GTask's thread pool to be expanded dynamically, by watching
it from the glib worker thread, and growing it (at an
exponentially-decreasing rate) if too much time passes without any
tasks completing. This should solve the deadlocking problems without
causing sudden breakage in apps that assume they can queue huge
numbers of tasks at once without consequences.

https://bugzilla.gnome.org/show_bug.cgi?id=687223
2015-04-04 09:27:50 -04:00
Dan Winship
86497649bb Document g_test_run() order better, and how it changed
But also note that the ordering is strictly an aesthetic/convenience
thing, and that tests should not be written to depend on it.

https://bugzilla.gnome.org/show_bug.cgi?id=721624
2014-01-07 12:32:35 -05:00
Dan Winship
a60014f1b6 GInetSocketAddress: fix the byte order of flowinfo and scope_id
The flowinfo and scope_id fields of struct sockaddr_in6 are in host
byte order, but the code previously assumed they were in network byte
order. Fix that.

This is an ABI-breaking change (since before you would have had to use
g_ntohl() and g_htonl() with them to get the correct values, and now
that would give the wrong values), but the previous behavior was
clearly wrong, and no one ever reported it, so it is likely that no
one was actually using it.

https://bugzilla.gnome.org/show_bug.cgi?id=684404
2013-01-30 16:46:02 -05:00
Matthias Clasen
be04560f96 Expand g_type_init release notes
This is in the light of
https://bugzilla.gnome.org/show_bug.cgi?id=691077
2013-01-12 13:02:31 -05:00
Matthias Clasen
6262a48678 2.35.3 2012-12-17 19:15:29 -05:00
Colin Walters
d04ac162c1 README.in: Note undefined behavior with new g_type_init() -> ctor change
https://bugzilla.gnome.org/show_bug.cgi?id=686822
2012-10-27 12:29:02 -04:00
Ryan Lortie
2002479c02 Add note about g_type_init() to README 2012-10-16 09:40:45 -04:00
Matthias Clasen
b470097b8b 2.34.0 2012-09-23 22:34:05 -04:00
Matthias Clasen
4cf5d25316 Fix a link
As pointed out in bug 673139, the link to the mailing list
information page was outdated.
2012-03-30 17:34:37 -04:00
Matthias Clasen
97cc0d0179 Release notes tweaks
Update download locations, mailing list instructions, and shuffle
the version-specific notes to be at the end.
2012-03-24 10:33:38 -04:00
Ryan Lortie
37af8167b6 README: Fix potentially extremely annoying typo 2012-01-27 21:50:03 +01:00
Ryan Lortie
6784468625 Note G_MESSAGES_DEBUG in README 2012-01-19 22:13:51 -05:00
Ryan Lortie
c3a1d832b8 README: Add note about gobject->gthread situation 2011-10-16 19:23:28 -04:00
Ryan Lortie
306aa62ea5 drop -uninstalled.pc files
These were meant to provide the ability to use GLib directly out of its
build tree but have a couple of rather serious limitations that prevent
their serious use:

 - these files only worked with programs built using libtool

 - for non-trivial uses, other environment variables will need to be
   setup to allow GLib to function properly

 - the system doesn't stack well when attempting to use multiple
   libraries all uninstalled

The jhbuild --prefix= style system works much better in every way, so we
remove this old hack.
2011-10-16 19:14:18 -04:00
Ryan Lortie
a6da2b9ff9 Mention thread API changes in README 2011-10-14 21:52:36 -04:00
Matthias Clasen
7455dd370e Make single includes mandatory
This has been the official line since 2.17, which seems plenty
long enough for a transition phase.
2011-10-12 00:25:38 -04:00
Ryan Lortie
13bd399d0a Add README notes about recent changes 2011-10-04 11:00:31 -04:00
Matthias Clasen
9bcf89cd70 Document libffi as new dependency 2011-08-08 23:16:07 +02:00
Matthias Clasen
fdf83b5108 Fix mailing list link in README
Patch by Thomas Andersen, bug 647594
2011-04-26 23:26:58 -04:00
Matthias Clasen
ab2112a77b Add release note about GApplication 2011-02-08 07:33:02 -05:00
Ryan Lortie
b0a0ac51cb Return NULL from g_mapped_file_get_contents()
In the case of an empty file, return NULL instead of "".  This means
that the return result of g_mapped_file_get_contents() will always be
page-aligned.
2010-01-27 21:33:35 -05:00
Alexander Larsson
3bb404f133 Mention thread changes in NEWS 2010-01-12 21:55:15 +01:00
Matthias Clasen
ad1580e516 Update release notes 2009-12-21 10:06:59 -05:00
Matthias Clasen
4c633ff0b5 2.22.0 2009-09-22 16:57:08 -04:00
Matthias Clasen
f7f16dc3a2 Remove outdated paragraph
We no longer use PATCH or API keywords.
2009-07-10 22:33:03 -04:00
Matthias Clasen
019e8c808f Add a note about g_simple_async_result_set_op_res_pointer change 2009-06-24 23:07:15 -04:00
Matthias Clasen
82a5f787d6 Update requirements
Mention that the mimetype-functionality of GIO reqires update-mime-database
and update-desktop-database at runtime. (#577128)
2009-04-02 23:57:59 -04:00
David Zeuthen
04f0742818 If possible, always pass FUSE file:// URIs (such as
2008-10-01  David Zeuthen  <davidz@redhat.com>

	* gdesktopappinfo.c (expand_macro): If possible, always pass FUSE
	file:// URIs (such as '/home/davidz/.gvfs/sftp on foo/file.avi')
	instead of the gio URI (such as sftp://foo/file.avi) when using
	g_app_info_launch() and friends. With a sufficiently recent gvfs,
	apps using gio+gvfs will map the FUSE file:// URI back to the gio
	URI (and thus bypass the fuse daemon) thanks the patch from bug
	#530654.  Since Nautilus is an user of g_app_info_launch() it
	means that non-gio POSIX apps, such as mplayer, will Just Work(tm)
	when launced via the file manager. Win. Fixes bug #528670.

	* gappinfo.c: Add some notes about the FUSE POSIX URI <-> GIO URI
	mapping to the description of GAppInfo.

2008-10-01  David Zeuthen  <davidz@redhat.com>

	* README.in: Add "Notes about glib 2.20" section detailing the
	ramifications of the patch from bug #528670.


svn path=/trunk/; revision=7566
2008-10-01 17:46:57 +00:00
Matthias Clasen
5adb336b65 Updates
svn path=/trunk/; revision=6947
2008-05-27 19:56:26 +00:00
Matthias Clasen
dbc8cd84c5 Document new dependencies
svn path=/trunk/; revision=6252
2008-01-06 17:48:41 +00:00
Matthias Clasen
afdc9e98e0 Updates
svn path=/trunk/; revision=5510
2007-05-23 02:30:05 +00:00
Matthias Clasen
da3fc6eed8 Preparations for 2.10 2006-02-24 14:25:06 +00:00
Matthias Clasen
513be6bbae Updates 2005-12-21 06:33:37 +00:00
Matthias Clasen
d1379dbdf8 Add a note about Solaris threads.
2005-12-02  Matthias Clasen  <mclasen@redhat.com>

	* README.in: Add a note about Solaris threads.
2005-12-02 21:40:43 +00:00
Matthias Clasen
2966c751b1 Updates
2005-11-17  Matthias Clasen  <mclasen@redhat.com>

	* NEWS: Updates

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

	* README.in: Updates.
2005-11-17 19:05:59 +00:00
Matthias Clasen
32247a04c6 2.6.0 2004-12-16 05:48:25 +00:00
Tor Lillqvist
eefa2d9763 Further Win32 edits. 2004-12-15 22:08:37 +00:00
Tor Lillqvist
72eab4d04d Win32 edits. 2004-12-15 21:55:43 +00:00
Matthias Clasen
1f77f1e80d Updates
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* README.in: Updates
2004-12-14 18:54:33 +00:00
Owen Taylor
c309c65ecb === Released 2.4.0 ===
Tue Mar 16 11:50:56 2004  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.4.0 ===

        * configure.in: Version 2.4.0, interface age 0.

        * README.in: Updates

        * NEWS: Updates
2004-03-16 19:10:34 +00:00
Sebastian Wilhelmi
1c462ac694 Improve generation of pseudo-random integers. (#99720, Morten Welinder
2002-12-10  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * glib/grand.c (g_rand_int_range): Improve generation of
        pseudo-random integers. (#99720, Morten Welinder <terra@diku.dk>)

        * README.in, docs/reference/glib/running.sgml,
        docs/reference/glib/tmpl/random_numbers.sgml,
        docs/reference/glib/changes.sgml: Added notes about the new
        algorithm.

2CVS: ----------------------------------------------------------------------
2002-12-10 13:50:40 +00:00
Sebastian Wilhelmi
c838b2a071 Improved the seeding algorithm. Old behaviour can be achived by setting
2002-11-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/grand.c, gthread/gthread-impl.c, tests/rand-test.c:
	Improved the seeding algorithm. Old behaviour can be achived by
	setting envvar G_RANDOM_VERSION to "2.0". (#99262)

	* docs/reference/glib/glib-docs.sgml,
	docs/reference/glib/Makefile.am: Renamed
	docs/reference/glib/changes-2.0.sgml to
	docs/reference/glib/changes.sgml and added section for changes
	from 2.0 to 2.2 (Also corrected 1.0 to 1.2).

	* README.in, docs/reference/glib/running.sgml,
	docs/reference/glib/tmpl/random_numbers.sgml,
	docs/reference/glib/changes.sgml: Added notes about the new
	seeding algorithm.
2002-11-26 14:09:00 +00:00
Owen Taylor
71e5efb9cb Remove notes about now-fixed-bugs.
Wed May 22 15:40:47 2002  Owen Taylor  <otaylor@redhat.com>

        * README.in: Remove notes about now-fixed-bugs.

        * m4macros/glib-gettext.m4 acinclude.m4: Get rid
        of AC_MSG_NOTICE() usage, since some broken systems
        (Hi Debian!) might not be using autoconf-2.5x for
        downstream packages even though we require it for
        glib itself.

        * INSTALL.in: Add a note about installing extra
        converters for Solaris.

        * glib/gutils.h (g_bit_nth_msf): Fix termination
        condition. (#82582, Paolo Molaro)

Wed May 22 15:24:04 2002  Owen Taylor  <otaylor@redhat.com>

        * README.translators: Add from GTK+.

        * *.po: Convert all po files to UTF-8.
2002-05-22 19:52:41 +00:00
Owen Taylor
cef5d28c89 Final updates for 2.0.0
Fri Mar  8 10:20:46 2002  Owen Taylor  <otaylor@redhat.com>

        * NEWS: Final updates for 2.0.0

        * glib/gstrfuncs.c: Convert the results of strerror()
        and strsignal() to UTF-8.

        * glib/gconvert.c glib/gdir.c glib/giochannel.c glib/giounix.c
        glib/giowin32.c: Use g_strerror(), not strerror().
2002-03-08 15:50:54 +00:00
Owen Taylor
dac25522cd Updates.
Fri Mar  8 00:15:29 2002  Owen Taylor  <otaylor@redhat.com>

        * README.in: Updates.

        * README.in: Add warnings about current encoding problems with .po
        files and error logging functions.

        * configure.in: Check for bind_textdomain_codeset().

        * glib/gutils.c (_glib_gettext): Call
        bind_textdomain_codeset, if present.

        * INSTALL.in: Some updates.

        * AUTHORS: Updates.

        * Makefile.am (EXTRA_DIST): Remove TODO.xml from EXTRA_DIST.

        * docs/Makefile.am (EXTRA_DIST): Remove Changes-2.0.txt
        from EXTRA_DIST.
2002-03-08 05:48:03 +00:00
Owen Taylor
525689823d Remove warnings about conflicts with the stable version.
Mon Apr 16 12:04:52 2001  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Remove warnings about conflicts with the
        stable version.

	 * glib-2.0.m4: Fix some of the error text to be halfway
        up to date.

        * README.in INSTALL.in: Add these to generate README, INSTAL
        (as in the stable branch). Update.

	  * HACKING: Update.
2001-04-17 00:55:34 +00:00