1. 08 Jan, 2007 1 commit
    • Matthias Clasen's avatar
      Don't link glib against libpthread. (#393812) · 541462ab
      Matthias Clasen authored
      2007-01-07  Matthias Clasen  <mclasen@redhat.com>
      
      	Don't link glib against libpthread.  (#393812)
      	
      	* configure.in: Link gthread against librt, not glib itself.
      
      	* glib/gthread.h:
      	* glib/gthread.c: Add a new thread function, gettime.
      
      	* glib/gtimer.c: Use gettime instead of directly working with
      	the various system interfaces.
      
      	* gthread/gthread-impl.c:
      	* gthread/gthread-posix.c:
      	* gthread/gthread-win32.c: Implement gettime.
      	
      
      svn path=/trunk/; revision=5227
      541462ab
  2. 23 May, 2006 1 commit
  3. 11 May, 2006 1 commit
  4. 10 May, 2006 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed to glib/gthreadprivate.h and moved system thread identifier · e4f8f3b9
      Sebastian Wilhelmi authored
      
      2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
      
      	* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
      	system thread identifier comparision and assignment macros from
      	glib/gthread.c to glib/gthreadprivate.h.
      
      	* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
      	glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
      	glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
      	glib/gthreadprivate.h instead of glib/gthreadinit.h.
      
      	* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
      	owner determination. This fixes #311043 and is mostly modeled
      	after the patch from jylefort@FreeBSD.org.
      e4f8f3b9
  5. 04 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Move short_month_names and long_month_names to bss. · b58fb2bd
      Matthias Clasen authored
      2006-04-04  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gdate.c: Move short_month_names and long_month_names
              to bss.
      
              * glib/gspawn-win32.c (g_spawn_error_quark):
              * glib/gspawn.c (g_spawn_error_quark):
              * glib/gshell.c (g_shell_error_quark):
              * glib/gmarkup.c (g_markup_error_quark):
              * glib/goption.c (g_option_error_quark):
              * glib/gkeyfile.c (g_key_file_error_quark):
              * glib/giochannel.c (g_io_channel_error_quark):
              * glib/gfileutils.c (g_file_error_quark):
              * glib/gconvert.c (g_convert_error_quark):
              * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
              * glib/gthread.c (g_thread_error_quark): No point in making
              the error path fast by caching quarks.
      
              * glib/gbookmarkfile.c: Make the parser struct const.
      b58fb2bd
  6. 01 Dec, 2005 1 commit
    • Tim Janik's avatar
      new slice allocator implementation. · 733b1789
      Tim Janik authored
      Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gslice.[hc]: new slice allocator implementation.
      
              * tests/slice-test.c: added random slice allocation test.
      
              * glib/gthread.[hc]: removed newly added private thread mem API.
      
              * glib/gthreadinit.h:
              * glib/gmessages.c:
              * glib/gthread.c:
              * glib/gmem.c: divided glib threading initialisation into three phases,
              initialisation where private keys and messaging are not available (only
              needed by gmem.c), initialisation without messaging but private keys
              available (gslice.c, gmessage.c), and full fledged initialisers that
              server the rest of glib. initialisation functions got renamed to reflect
              the limitations of their corresponding phases.
      
              * glib/gmem.c: removed memchunk code, defer allocations to
              g_slice_* instead.
      
              * glib/gmem.[hc]: removed g_slice_* skeletons.
      
              * glib/glib.symbols: added g_slice_* symbols.
      
              * configure.in: check for availability of posix_memalign(3), memalign(3)
              and valloc(3).
      
              * glib/Makefile.am: added gslice.[hc].
      733b1789
  7. 28 Nov, 2005 1 commit
    • Matthias Clasen's avatar
      Silence compiler warnings. · 09b118f4
      Matthias Clasen authored
      2005-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal):
      	* glib/gnode.c (g_node_depth_traverse_level):
      	* glib/gmem.c (g_allocator_new):
      	* glib/ghash.c (g_hash_table_unref, g_hash_table_destroy)
      	(g_hash_table_foreach_remove_or_steal): Silence compiler
      	warnings.
      09b118f4
  8. 17 Nov, 2005 2 commits
    • Matthias Clasen's avatar
      Updates · 2966c751
      Matthias Clasen authored
      2005-11-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* NEWS: Updates
      
      	* glib/gthread.c (g_thread_foreach): Mark as new api.
      
      	* README.in: Updates.
      2966c751
    • Matthias Clasen's avatar
      const correctness fixes, found by Arjan van de Ven and gcc. · 92ea153a
      Matthias Clasen authored
      2005-11-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gbacktrace.c:
      	* glib/gdate.c:
      	* glib/gthread.c: const correctness fixes, found
      	by Arjan van de Ven and gcc.
      92ea153a
  9. 01 Nov, 2005 1 commit
    • Tim Janik's avatar
      prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to · 0cba1b53
      Tim Janik authored
      Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
              added g_slice_*() API to allocate and cache small bits of memory.
              an actuall allocator implementation for g_slice_*() is still pending.
      
              * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
              changed GRealThread list to use in-structure *next; fields instead
              of GSList, in order for thread iteration to not depenend on g_slice_*()
              indirectly.
              _g_thread_mem_private_get():
              _g_thread_mem_private_set(): added accessors for private memory,
              needed because the ordinary GPrivate implementation relies on GArray
              and GSList and therefore indirectly on working g_slice_*() allocations.
      
              * glib/gthread.[hc]:
              g_thread_foreach(): new public API function to loop over all existing threads.
      
              * glib/gdataset.c:
              * glib/gstring.c:
              * glib/gcache.c:
              * glib/garray.c:
              * glib/gqueue.c:
              * glib/gslist.c:
              * glib/glist.c:
              * glib/ghash.c:
              * glib/gtree.c:
              * glib/ghook.c:
              * glib/gmain.c:
              * glib/gnode.c:
              removed GAllocator and free list usages and accompanying locks.
              use g_slice_*() API to allocate and cache small bits of memory.
      
              * glib/ghook.h: removed GMemChunk field from public API.
      
              * glib/gslist.h:
              * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
      
              * glib/gnode.h: deprecate allocator API.
      
              * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
              be used for poll rec lists.
      
              * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
              g_relation_destroy(): free all tuples from the all_tuples hash table,
              this effectively maintains the life time track keeping of tuples.
              g_relation_delete_tuple(): free tuples which are removed from the
              all_tuples hash table. this fixes a temporary leak that was present
              in the memchunk code until the destruction of the relation.
      0cba1b53
  10. 12 Jul, 2005 1 commit
  11. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  12. 07 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Update the returned value after locale changes. (#160271, Christian · 10632e41
      Matthias Clasen authored
      2004-12-07  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gutils.c (g_get_language_names): Update the returned
      	value after locale changes.  (#160271, Christian Persch)
      	(_g_utils_thread_init): Initialize the language name cache
      	before going threaded.
      
      	* glib/gthread.c (g_thread_init_glib): Call _g_utils_thread_init().
      
      	* glib/gthreadinit.h: Add _g_utils_thread_init().
      10632e41
  13. 26 Oct, 2004 2 commits
  14. 16 Sep, 2004 1 commit
  15. 10 Apr, 2004 1 commit
    • Tor Lillqvist's avatar
      glib/giowin32.c glib/gmain.c glib/gstrfuncs.c Decorating variable · 9b408061
      Tor Lillqvist authored
      2004-04-10  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giowin32.c
      	* glib/gmain.c
      	* glib/gstrfuncs.c
      	* glib/gthread.c: Decorating variable definitions with
      	__declspec(dllexport) causes problems on Cygwin build, and isn't
      	really needed for a native Win32 build with mingw or MSVC, so
      	remove. (#138402, Roger Leigh)
      
      	* glib/libcharset/localcharset.c: Use Win32-specific code also on
      	Cygwin.
      	* tests/uri-test.c: Don't assume that local filenames are in UTF-8
      	on Cygwin, either. (#138412, Roger Leigh)
      9b408061
  16. 05 Mar, 2004 1 commit
  17. 26 Feb, 2004 1 commit
  18. 25 Feb, 2004 1 commit
  19. 08 Jul, 2003 1 commit
    • Matthias Clasen's avatar
      Support for one-time initialization functions. (#69668, Sebastian · 876f9078
      Matthias Clasen authored
      2003-07-09  Matthias Clasen  <maclas@gmx.de>
      
      	Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)
      
      	* configure.in: Check whether double checked locking is safe, define g_once() in
      	glibconfig.h accordingly.
      	* glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
      	* glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
      	locking is unsafe.
      	* tests/thread-test.c: Add tests for g_once().
      876f9078
  20. 14 Mar, 2003 1 commit
  21. 14 Feb, 2003 1 commit
    • Sebastian Wilhelmi's avatar
      Fixes for #101264 and #99372: · 8e91cf9e
      Sebastian Wilhelmi authored
      
      2003-02-14  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	Fixes for #101264 and #99372:
      
      	* glib/gconvert.h, glib/gmain.c, glib/gmem.c, glib/gmessages.c,
      	glib/grand.c: Include gthreadinit.h and rename the thread
      	initialization functions a bit and let them start with _, so that
      	later we can stop exporting them.
      
      	* glib/gmem.c, glib/gmessages.c: Move the g_private_new() calls to
      	new functions. They have to be called after setting
      	g_threads_got_initialized to TRUE (see #101264).
      
      	* glib/gthread.c: Include gthreadinit.h. Renamed g_mutex_init() to
      	g_thread_init_glib(). Call the thread initialization functions
      	(which are not allowed to call g_private_new), then set
      	g_threads_got_initialized to TRUE, then call the other thread
      	initialization functions (which must not call anything but
      	g_private_new()).
      
      	* glib/gthreadinit.h: New private header to cleanly declare all
      	thread initialization functions.
      
      	* gthread/gthread-impl.c: Include gthreadinit.h. In
      	g_thread_init() just call g_thread_init_glib(), which in turn calls the
      	other functions (see #99372).
      
      	* glib/Makefile.am: Added gthreadinit.h.
      8e91cf9e
  22. 15 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Mark the contents of the strucures in this file /*< private >*/ · 424b7e92
      Owen Taylor authored
      Sat Dec 14 21:10:57 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gthread.h: Mark the contents of the strucures
              in this file /*< private >*/
      
              * glib/gthread.[ch]: Rename the 'write' field of the
              structure to 'have_writer' to avoid any possible
              conflict with system headers. (#90549, Morten Welinder)
      424b7e92
  23. 04 Dec, 2002 1 commit
  24. 06 Aug, 2002 1 commit
    • Sebastian Wilhelmi's avatar
      Set the normal PID surrogate priority according to getpid() to avoid · 3faf9591
      Sebastian Wilhelmi authored
      
      2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib/gthread.c: Set the normal PID surrogate priority according
      	to getpid() to avoid errors for niced processes. (#86116)
      
      	* gthread/gthread-impl.c, gthread/gthread-posix.c,
      	gthread/gthread-solaris.c: Do the same for the posix/dce
      	implementation. Solaris still needs to set priority of the main
      	thread, because all unbound threads will schedule according to
      	that value and it defaults to 0 (the minimal value).
      3faf9591
  25. 04 Feb, 2002 1 commit
    • Sebastian Wilhelmi's avatar
      Delay allocation until after all g_return_val_if_fail (). · cb17f230
      Sebastian Wilhelmi authored
      
      2002-02-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib/gthread.c (g_thread_create_full): Delay allocation until
      	after all g_return_val_if_fail ().
      
      	* glib/gthread.h: Make depth member guint for cosmetic reasons.
      
      	* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
      	be unsigned. All that spotted by Jrgen Viksell
      	<jorgen.viksell@telia.com>
      cb17f230
  26. 19 Sep, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Add thread_equal function to allow for platform defined function to · f8f4c377
      Sebastian Wilhelmi authored
      2001-09-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib/gthread.h (GThreadFunctions): Add thread_equal function to
      	allow for platform defined function to compare two threads.
      
      	* glib/gthread.c: Use g_thread_functions_for_glib_use.thread_equal
      	when non-NULL instead of ==.
      
      	* gthread/gthread-posix.c: Add g_thread_equal_posix_impl and
      	add to the function vector g_thread_functions_for_glib_use_default.
      
      	* gthread/gthread-solaris.c, gthread/gthread-win32.c: Add NULL
      	as equal function, as on those two platforms you don't need an
      	equal function.
      f8f4c377
  27. 30 Aug, 2001 1 commit
  28. 30 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Make some changes to the way that GMainContext works: · 8951f96c
      Owen Taylor authored
      Sat Jun 30 15:49:10 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gmain.[ch]: (Mostly patch from Sebastian Wilhemi)
      	Make some changes to the way that GMainContext works:
      
      	 - a GMainContext is no longer associated with a single
      	   thread, but any thread can acquire ownership
      	   of thread and iterate.
      
      	 - There is a facility g_main_context_wait() for
      	   non-owner-threads to wait either for ownership
      	   or for a condition to be broadcast.
      
      	 - For efficiency, GMainLoop just piggybacks of
      	   of the loops mutex / condition instead of
      	   having a separate mutex/condition for each
      	   GMainLoop.
      
      	* glib/gthread.[ch]: Remove hacks to store the thread's
      	GMainContext in the GThread structures, since we
      	no longer have the GMainContext <=> GThread correspondence.
      
              * glib/gmain.[ch]: Make g_main_context_wakeup() public
      	so someone could completely duplicate GMainLoop
      	with the public API.
      
      	* tests/mainloop-test: Fix up to the new API. Decidedly
      	doesn't work at the moment, but that may be the IO
      	channel changes, or preexisting locking problems.
      8951f96c
  29. 22 May, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      g_thread_create renamed to g_thread_create_full. · e2b7bedb
      Sebastian Wilhelmi authored
      
      2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.def: g_thread_create renamed to g_thread_create_full.
      
      	* gthread.c: memcpy is not necessary here. We can simply use
      	struct assignment.
      
      	* gmessages.c: Fix compilation error on win32. Added
      	GFileDescriptor, wich is gint on Unix and FILE* on win32.
      e2b7bedb
  30. 18 May, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed g_thread_create to g_thread_create_full and added macro · 227d18bc
      Sebastian Wilhelmi authored
      
      2001-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gthread.c, gthread.h: Renamed g_thread_create to
      	g_thread_create_full and added macro g_thread_create, which omits
      	'stack_size', 'bound' and 'priority' parameters. Also removed
      	'bound' from GThread struct.
      
      	* gthreadpool.h, gthreadpool.c: Adapted GThreadPool to the above
      	changes. GThreadPool lost the 'priority' and 'bound'
      	members. g_thread_pool_new the 'stack_size', 'bound' and
      	'priority' parameters.
      
      	* tests/mainloop-test.c, tests/thread-test.c,
      	tests/threadpool-test.c: Adapted to the above changes.
      227d18bc
  31. 09 May, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed 'value' and 'arg' to 'data' and 'thread_func' to 'func' to make it · a8c9dadd
      Sebastian Wilhelmi authored
      
      2001-05-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gthread.c, gthread.h: Renamed 'value' and 'arg' to 'data' and
      	'thread_func' to 'func' to make it more consistent with the rest
      	of GLib.
      
      	* gthreadpool.c, gthreadpool.h: Moved 'stack_size' from the public
      	members of GThreadPool to the private ones. Renamed 'thread_func'
      	to 'func' as above. Moved up 'user_data' in g_thead_pool_new
      	argument list and in GThreadPool struct.
      a8c9dadd
  32. 08 May, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Moved func and arg members from GRealThread to GThread, such that they can · cd00d6e2
      Sebastian Wilhelmi authored
      
      2001-05-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gmain.c, gthread.c, gthread.h: Moved func and arg members from
      	GRealThread to GThread, such that they can be accessed by the
      	user.
      
      	* gthread.c, gthread.h: Due to popular demand (Tim being the
      	populus here ;-) threads now have a 'return value', which is
      	returned by g_thread_join and is either the return of the topmost
      	thread function or the value given to g_thread_exit.
      
      	* gthreadpool.c, tests/mainloop-test.c, tests/thread-test.c:
      	Adapted to the above change.
      cd00d6e2
  33. 02 Apr, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Use the new GRealThread member "context" instead of a GStaticPrivate to · 7b06f826
      Sebastian Wilhelmi authored
      
      2001-04-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gmain.c: Use the new GRealThread member "context" instead of a
      	GStaticPrivate to store the thread specific main loop context.
      
      	* gthread.c: Added "context" member to GRealThread and updated
      	g_thread_create, g_thread_self and g_thread_cleanup accordingly.
      
      	* gthread.c, gthread.h: Removed the functions
      	g_static_private_(get|set)_for_thread and adapted
      	g_static_private_(get|set) and g_static_private_free accordingly.
      7b06f826
  34. 09 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      Cygwin support contributed by Stefan Ondrejicka <ondrej@idata.sk>. · 31c5b189
      Tor Lillqvist authored
      2001-02-21  Tor Lillqvist  <tml@iki.fi>
      
      	Cygwin support contributed by Stefan Ondrejicka
      	<ondrej@idata.sk>. Hopefully I got it all in while simultaneously
      	adding support for auto*/libtool for mingw.
      
      	* Makefile.am: Changes for auto* support on Cygwin and Win32. Do
      	still distribute the hand-written makefiles and *.win32.in files,
      	though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
      	Use -no-undefined. Pass -export-symbols glib.def to libtool.
      
      	* configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
      	and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
      	calls for Cygwin and mingw support.  Check for %I64u guint64
      	format (in MS C library). Set G_MODULE_IMPL on mingw and
      	Cygwin. Use ac_object and ac_exeext.  Set GIO, GSPAWN, PLATFORMDEP
      	and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
      	automake conditional on Win32.
      
      	* glib.h: Include gwin32.h also on Cygwin.
      
      	* gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
      	Unix) for Cygwin's sake.
      
      	* gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
      
      	* gconvert.c
      	* gthread.c
      	* gutf8.c
      	* gutils.c: For code needed both on Cygwin and native Win32,
      	test for G_PLATFORM_WIN32.
      
      	* gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS.
      
      	* gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
      	in case compiling a static library on Win32 or Cygwin.
      
      	* gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
      	dirent emulation on Cygwin.
      	(get_package_directory_from_module) Convert return value from
      	GetModuleFileName() to POSIX path on Cygwin.
      
      	* tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
      	and libgmodule as appropriate. Use -no-undefined.
      
      	* gbacktrace.c: Move #ifdefs around a bit on Win32.
      
      	* gshell.c (unquote_string_inplace): Make static.
      31c5b189
  35. 23 Feb, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Change the order to match the order in g_thread_create(). · 2395a333
      Sebastian Wilhelmi authored
      
      2001-02-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gthread.h (struct _GThread): Change the order to match the order
      	in g_thread_create().
      
      	* gthread.c (g_static_rec_mutex_lock_full): Also do the right
      	thing (behave like 'depth' calls to g_static_rec_mutex_lock) for a
      	mutex, that is already locked.
      
      	* glib/tmpl/threads.sgml: Big update. Almost ready.
      
      	* glib/tmpl/async_queues.sgml: Typo.
      
      	* glib/glib-sections.txt: Added g_static_rec_mutex_init,
      	g_static_rec_mutex_free, g_static_rw_lock_init,
      	g_static_private_init and g_static_private_free.
      
      	* glib/glib-overrides.txt: Added g_thread_yield and g_thread_exit.
      2395a333
  36. 19 Feb, 2001 1 commit
  37. 17 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      include string.h · 1c391cc6
      Havoc Pennington authored
      2001-02-17  Havoc Pennington  <hp@pobox.com>
      
      	* gthread.c: include string.h
      
              Applied patch from Soeren Sandmann:
      
      	* testglib.c: const fixes
      
      	* gwin32.h: format cleanups
      
      	* gutils.c (g_atexit): constify a variable
      	(g_find_program_in_path): constification
      	(g_basename): G_CONST_RETURN
      	(g_path_skip_root): G_CONST_RETURN
      	(g_getenv): G_CONST_RETURN
      	(g_get_user_name): G_CONST_RETURN
      	(g_get_real_name): G_CONST_RETURN
      	(g_get_home_dir): G_CONST_RETURN
      	(g_get_tmp_dir): G_CONST_RETURN
      	(g_get_prgname): G_CONST_RETURN
      	(_glib_gettext): G_CONST_RETURN
      
      	* gunicode.h: formatting cleanups
      
      	* gstrfuncs.c (g_strerror): G_CONST_RETURN
      	(g_strsignal): G_CONST_RETURN
      
      	* gspawn.c (g_execute): const on variables
      
      	* gmessages.c (printf_string_upper_bound): fix const on a variable
      
      	* gmem.c (g_mem_chunk_new): make the "name" arg const
      	(struct _GRealMemChunk): make the "name" field const
      
      	* gfileutils.c (g_file_open_tmp): store const return in a const
      	gchar* variable
      
      	* gdataset.c (g_quark_to_string): G_CONST_RETURN
      
      2001-02-17  Havoc Pennington  <hp@pobox.com>
      
              Applied patch from Soeren Sandmann:
      
      	* gvaluetypes.c (g_value_get_string): G_CONST_RETURN
      
      	* gtype.c (g_type_name): G_CONST_RETURN
      
      	* gsignal.c (g_signal_name): G_CONST_RETURN
      
      	* gobject-query.c (main): const fix
      
      2001-02-17  Havoc Pennington  <hp@pobox.com>
      
              Applied patch from Soeren Sandmann:
      
      	* gmodule.c (g_module_error): G_CONST_RETURN
      	(g_module_name): G_CONST_RETURN
      1c391cc6
  38. 15 Feb, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Reverted the changes necessary to enlarge the system thread for · efb2e89e
      Sebastian Wilhelmi authored
      
      2001-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* acconfig.h, configure.in: Reverted the changes necessary to
      	enlarge the system thread for G_THREAD_USE_PID_SURROGATE.
      
      	* gthread.c: Now implement G_THREAD_USE_PID_SURROGATE in gthread.c
      	instead of gthread/gthread-posix.c. While the latter has the
      	advantage, that it is conceptually cleaner, it makes
      	g_thread_self_posix_impl _very_ slow and that hurts
      	GStaticRecMutex and other things. So the new version is less
      	clean, but faster.
      
      	* gthread-posix.c: Removed the G_THREAD_USE_PID_SURROGATE
      	implementation, which is now in gthread.c.
      efb2e89e