1. 13 Dec, 2005 1 commit
  2. 22 Nov, 2005 1 commit
    • Tim Janik's avatar
      g_hash_table_new_full(): create hash tables with a ref count of 1. · 3e847a09
      Tim Janik authored
      Tue Nov 22 14:04:26 2005  Tim Janik  <timj@imendio.com>
      
              * glib/ghash.h:
              * glib/ghash.c:
              g_hash_table_new_full(): create hash tables with a ref count of 1.
              g_hash_table_ref(): atomically ref_count+=1
              g_hash_table_unref(): atomically ref_count-=1, destroys hash table
              when refcount reaches 0.
              g_hash_table_destroy(): just destroy keys and values, unref by 1.
              g_hash_table_insert():
              g_hash_table_replace(): assert ref_count>0.
      
              * glib/gatomic.h:
              * glib/gatomic.c: added 'volatile' qualifier to all atomic pointer and
              integer pointers.
      3e847a09
  3. 04 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Always export g_atomic_int_get and g_atomic_pointer_get as functions, even · 8e7a50ab
      Matthias Clasen authored
      2005-08-04  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/glib.symbols:
      	* glib/gatomic.[hc]: Always export g_atomic_int_get and
      	g_atomic_pointer_get as functions, even if we have macros,
      	to avoid changing the ABI depending on configuration.
      
      	* glib/gatomic.c: Fix the s390 implementations of
      	g_atomic_pointer_compare_and_exchange.
      8e7a50ab
  4. 29 Feb, 2004 1 commit
    • Sebastian Wilhelmi's avatar
      Moved the assembler functions from gatomic.h to gatomic.c, which makes for · 769f36db
      Sebastian Wilhelmi authored
      
      2004-02-29  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	* configure.in, glib/gatomic.c, glib/gatomic.h: Moved the
      	assembler functions from gatomic.h to gatomic.c, which makes for
      	better maintainability. Also use gint instead of gint32 to be able
      	to use reference counting for ABI-fixed structures with
      	gint/guint.
      
      	* glib/gthread.h: Adapted accordingly.
      
      	* tests/atomic-test.c: Updated to test for G_MAXINT and G_MININT.
      769f36db
  5. 26 Feb, 2004 3 commits
    • Sebastian Wilhelmi's avatar
      empty G_ATOMIC_MEMORY_BARRIER() definition for !G_THREADS_ENABLED · 42bba400
      Sebastian Wilhelmi authored
      
      2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
      	!G_THREADS_ENABLED
      42bba400
    • Sebastian Wilhelmi's avatar
      empty G_ATOMIC_MEMORY_BARRIER() definition for !G_THREADS_ENABLED · ea9d1389
      Sebastian Wilhelmi authored
      
      2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
      	!G_THREADS_ENABLED
      
      	* glib/gthread.h: Define g_once and
      	g_static_mutex_get_mutex_impl_shortcut in terms of
      	G_MEMORY_BARRIER, if defined and if we can inline.
      
      	* configure.in: Remove double checked locking feature check.
      ea9d1389
    • Sebastian Wilhelmi's avatar
      New files to implement atomic operations for different platforms. Fixes · dbbb29f6
      Sebastian Wilhelmi authored
      
      2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	* glib/gatomic.c, glib/gatomic.h: New files to implement atomic
      	operations for different platforms. Fixes bug #63621.
      
      	* glib/glib.h: Include gatomic.h.
      
      	* configure.in: Add test for assembler routines for atomic operations.
      
      	* glib/Makefile.am: Add gatomic.c, gatomic.h.
      
      	* tests/Makefile.am, tests/atomic-test.c: Unit test for atomic
      	operations.
      
      	* glib/glib-overrides.txt, glib/glib-sections.txt,
      	glib/glib-docs.sgml, glib/tmpl/atomic_operations.sgml: Add docs
      	for atomic operations.
      dbbb29f6