1. 06 May, 2010 1 commit
  2. 01 Feb, 2010 1 commit
  3. 31 Jan, 2010 1 commit
  4. 30 Jan, 2010 1 commit
  5. 28 Jan, 2010 1 commit
    • Allison Karlitskaya's avatar
      Bug 548967 - 1 bit mutex lock · 669b0f2d
      Allison Karlitskaya authored
      Add support for a mutex lock that consumes only one bit of storage
      inside of an integer on systems that support futexes.  Futex is emulated
      (at a higher cost) on systems that don't have it -- but only in the
      contended case.
      669b0f2d
  6. 01 Mar, 2009 1 commit
  7. 23 Feb, 2009 1 commit
  8. 17 Feb, 2009 1 commit
    • Matthias Clasen's avatar
      Fix strict aliasing warnings and viiolations to make GLib and · c8e37b63
      Matthias Clasen authored
              GLib users buildable with gcc 4.4. Patch by Jakub Jelinek.
      
              * glib/gatomic.[hc]: Add G_GNUC_MAY_ALIAS to pointer arguments,
              fix macro versions to only operate on objects of the same size.
      
              * glib/gdataset.c:
              * glib/gthread.[hc]:
              * glib/gdatasetprivate.h: Remove unnecessary casts in
              g_atomic_pointer_get calls.
      
      
      svn path=/trunk/; revision=7875
      c8e37b63
  9. 31 Dec, 2008 1 commit
  10. 18 Dec, 2008 1 commit
    • Mike Kestner's avatar
      Bug 560676 - function access for g_threads_supported · 8bed6881
      Mike Kestner authored
      
      2008-12-18  Mike Kestner <mkestner@novell.com>
      
      	Bug 560676 - function access for g_threads_supported
      
      	* glib/gthreads.c (g_thread_get_initialized): new accessor for
      	g_threads_supported macro.
      	* glib/gthreads.h: add g_thread_get_initialized
      
      svn path=/trunk/; revision=7752
      8bed6881
  11. 21 Oct, 2007 1 commit
    • Behdad Esfahbod's avatar
      Fix warnings from sparse. (#487491, Kjartan Maraas) · 9df1f4fc
      Behdad Esfahbod authored
      2007-10-21  Behdad Esfahbod  <behdad@gnome.org>
      
              * glib/gdate.c (g_date_strftime):
              * glib/gmain.c (g_main_context_check):
              * glib/gregex.c (g_match_info_fetch_all), (g_regex_split_full):
              * glib/gthread.c (g_once_init_enter_impl), (g_once_init_leave):
              * glib/gthread.h:
              * glib/gutf8.c (g_utf16_to_utf8), (g_utf16_to_ucs4):
              * tests/errorcheck-mutex-test.c (lock_locked_mutex),
              (trylock_locked_mutex), (unlock_unlocked_mutex),
              (free_locked_mutex), (wait_on_unlocked_mutex),
              (wait_on_otherwise_locked_mutex), (timed_wait_on_unlocked_mutex),
              (timed_wait_on_otherwise_locked_mutex):
              Fix warnings from sparse. (#487491, Kjartan Maraas)
      
      
      svn path=/trunk/; revision=5792
      9df1f4fc
  12. 14 Aug, 2007 1 commit
    • Tim Janik's avatar
      prevent race covered by g_once_init_enter(), by checking for previous · d5c43708
      Tim Janik authored
      Tue Aug 14 02:06:10 2007  Tim Janik  <timj@imendio.com>
      
              * glib/gthread.c (g_once_init_enter_impl): prevent race covered
              by g_once_init_enter(), by checking for previous initializations
              before entering initialisation branch.
      
              * tests/onceinit.c: added multi-thread/multi-initializer stress test
              using unoptimized g_once_init_enter_impl().
      
      
      
      svn path=/trunk/; revision=5701
      d5c43708
  13. 13 Aug, 2007 1 commit
  14. 12 Jul, 2007 2 commits
  15. 10 Jul, 2007 1 commit
    • Tim Janik's avatar
      implemented g_once_init_enter(), g_once_init_enter_impl() and · c9ccc828
      Tim Janik authored
      Tue Jul 10 12:24:35 2007  Tim Janik  <timj@imendio.com>
      
              * glib/gthread.[hc]: implemented g_once_init_enter(),
              g_once_init_enter_impl() and g_once_init_leave(), based on a patch by
              Antoine Tremblay, fixes #65041.
              adapted exported inline function mechanism from gutils.[hc] for inlining
              g_once_init_enter_impl() in gthread.[hc].
      
      
      
      svn path=/trunk/; revision=5616
      c9ccc828
  16. 15 Jun, 2007 1 commit
    • Sebastian Wilhelmi's avatar
      Extended the comments on those functions, that are NOOPs, before · 16b49638
      Sebastian Wilhelmi authored
      2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>
      
      	* docs/reference/glib/tmpl/threads.sgml: Extended the comments on
      	those functions, that are NOOPs, before g_thread_init() has been
      	called. (#447583)
      
      	* glib/gthread.c (g_static_mutex_free): Clarified comment to
      	remind myself, tha calling g_static_mutex_free() before
      	g_thread_init() is safe.
      
      
      svn path=/trunk/; revision=5567
      16b49638
  17. 16 Jan, 2007 3 commits
    • Matthias Clasen's avatar
      Revert an accidental ABI break by moving gettime out of the · 4bbde507
      Matthias Clasen authored
      2007-01-16  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gthread.h:
              * glib/gthread.c:
              * glib/glib.symbols: Revert an accidental ABI break by
              moving gettime out of the GThreadFunctions struct and making
              it a separate variable.  (#397139, Joe Marcus Clarke)
      
              * gthread/*.c: Adapt.
      
      
      
      svn path=/trunk/; revision=5279
      4bbde507
    • Tor Lillqvist's avatar
      glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of · 098d17a4
      Tor Lillqvist authored
      2007-01-16  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gthread.c (gettime)
      	* gthread-win32.c (g_gettime_win32_impl):
      	GetSystemTimeAsFileTime() returns 100s of nanoseconds since 1601,
      	so offset to Unix epoch (1970) and multiply by 100 to get
      	nanoseconds which is what we want.
      
      
      svn path=/trunk/; revision=5277
      098d17a4
    • Tor Lillqvist's avatar
      glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of · 5d657678
      Tor Lillqvist authored
      2007-01-16  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gthread.c (gettime)
      	* gthread-win32.c (g_gettime_win32_impl):
      	GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
      	by 100 to get nanoseconds which is what we want.
      
      
      svn path=/trunk/; revision=5276
      5d657678
  18. 15 Jan, 2007 1 commit
  19. 12 Jan, 2007 3 commits
  20. 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
  21. 23 May, 2006 1 commit
  22. 11 May, 2006 1 commit
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 12 Jul, 2005 1 commit
  30. 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
  31. 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
  32. 26 Oct, 2004 2 commits
  33. 16 Sep, 2004 1 commit