1. 08 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Add convert-test here. · 308678a6
      Matthias Clasen authored
      2005-08-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/Makefile.am: Add convert-test here.
      
      	* tests/convert-test.c: Add the beginning of a testsuite
      	for g_convert() and friends.
      308678a6
  2. 06 Aug, 2005 5 commits
  3. 05 Aug, 2005 3 commits
  4. 04 Aug, 2005 2 commits
  5. 03 Aug, 2005 7 commits
  6. 02 Aug, 2005 8 commits
  7. 01 Aug, 2005 5 commits
    • Tim Janik's avatar
      test high contention on closure reference counts to trigger and catch · 10a3867a
      Tim Janik authored
      Mon Aug  1 23:33:47 2005  Tim Janik  <timj@imendio.com>
      
              * tests/refcount/closures.c: test high contention on closure
              reference counts to trigger and catch non-atomic updates.
      
              * tests/refcount/objects.c:
              * tests/refcount/objects2.c:
              * tests/refcount/properties.c:
              * tests/refcount/properties2.c:
              * tests/refcount/signals.c:
              fixed up test and threading fundamentals. variables accessed from all
              threads need to be volatile. context switches are enforced by using
              g_thread_yield(), not g_usleep(1) which may result in busy waits on
              some platforms. for testcode, always consider all warnings and
              critical messages fatal. issue the currently running program on
              stdout. improved progress indicators.
      
              * tests/refcount/properties.c:
              * tests/refcount/objects.c:
              don't overdo the number of testing threads to keep the testing machine
              usable, 2 threads can produce as much contention as 20 if executing the
              same code.
      
              * tests/refcount/signals.c: only start 1 thread per object. GObject
              doesn't provide mutually exclusive object access, but only mutually
              exclusive reference count modification.
      
              * tests/Makefile.am: added closures test.
      10a3867a
    • Tim Janik's avatar
      turned all modifications to the first 32 integer bits in a closure into · 834ddd19
      Tim Janik authored
      Mon Aug  1 23:00:42 2005  Tim Janik  <timj@imendio.com>
      
              * gclosure.c: turned all modifications to the first 32 integer bits in a
              closure into atomic accesses. wrapped write accesses into special macros
              to keep the atomic modification logic in a single place. comment cleanups.
      
              * gclosure.h: made all atomicly accessed closure fields volatile.
      
              * gobject.h: made ref_count field volatile.
      834ddd19
    • Tor Lillqvist's avatar
      7787e71d
    • Tor Lillqvist's avatar
      Ugh, fix braino. · 7aa2e37f
      Tor Lillqvist authored
      7aa2e37f
    • Tor Lillqvist's avatar
      Make it pass on Win32. (from_uri_tests[]): Take into consideration that on · d5a98987
      Tor Lillqvist authored
      2005-08-01  Tor Lillqvist  <tml@novell.com>
      
      	* tests/uri-test.c: Make it pass on Win32.
      	(from_uri_tests[]): Take into consideration that on Win32 we don't
      	return "localhost" hostnames.
      	(safe_strcmp_filename): New function that considers slash and
      	backslash equal on Win32.
      	(run_roundtrip_tests): Use safe_strcmp_filename().
      d5a98987
  8. 31 Jul, 2005 2 commits
    • Tim Janik's avatar
      moved G_DATALIST_*_POINTER() macros here, because proper use requires the · 2d1cf6c1
      Tim Janik authored
      Sun Jul 31 01:50:20 2005  Tim Janik  <timj@gtk.org>
      
              * glib/gdataset.c:
              moved G_DATALIST_*_POINTER() macros here, because proper use requires
              the global g_dataset_global mutex to be acquired.
              g_datalist_id_get_data():
              g_datalist_unset_flags():
              g_datalist_set_flags(): properly acquire and release dataset mutex.
      
              * glib/gdatasetprivate.h: implement G_DATALIST_GET_FLAGS() via atomic
              pointer access to account for memory barriers. moved all other macros.
      2d1cf6c1
    • Tim Janik's avatar
      use g_datalist_set_flags() and g_datalist_unset_flags() to allow proper · 4746cf2c
      Tim Janik authored
      Sun Jul 31 02:04:23 2005  Tim Janik  <timj@gtk.org>
      
              * gobject.c: use g_datalist_set_flags() and g_datalist_unset_flags() to
              allow proper locking around &qdata modifications.
      4746cf2c
  9. 30 Jul, 2005 2 commits
    • Tim Janik's avatar
      document non-thread-safety for _foreach() functions. · a49fda33
      Tim Janik authored
      Sat Jul 30 23:40:35 2005  Tim Janik  <timj@gtk.org>
      
              * glib/tmpl/datalist.sgml:
              * glib/tmpl/datalset.sgml: document non-thread-safety for
              _foreach() functions.
      a49fda33
    • Tim Janik's avatar
      reverted notify_mutex introduction, since this prevents parallelized · f0cfc267
      Tim Janik authored
      Sat Jul 30 21:10:26 2005  Tim Janik  <timj@gtk.org>
      
              * gobject.c: reverted notify_mutex introduction, since this prevents
              parallelized setting of object properties on different objects, and
              serves no apparent purpose (to me at least).
              g_object_real_dispose(): removed non-atomic reference count
              modifications.
              g_object_unref(): make sure the closures array is destroyed when
              destroying signal handlers.
      
              * gparam.c: cosmetic changes.
      
              * gsignal.c: comment fixup. allow 16bit blocking count.
      
              * gsignal.c: reverted GClosure related changes.
      
              * gclosure.c: reverted premature commit of atomic reference
              counting attempt.
      f0cfc267
  10. 28 Jul, 2005 1 commit
  11. 27 Jul, 2005 1 commit
  12. 26 Jul, 2005 3 commits