1. 01 Jun, 2013 1 commit
    • Allison Karlitskaya's avatar
      Remove a bunch of lingering g_thread_init() · 210b1f8b
      Allison Karlitskaya authored
      After this patch, there is but one remaining use of g_thread_init(),
      which is in tests/slice-threadinit.c, a testcase dedicated to testing
      the functionality of gslice across a g_thread_init() boundary.
      
      This testcase is pretty meaningless these days... probably we should
      delete it.
      210b1f8b
  2. 02 Nov, 2012 1 commit
  3. 04 Oct, 2011 1 commit
  4. 09 Sep, 2011 1 commit
    • Dan Winship's avatar
      Make threads mandatory · 5bc7729d
      Dan Winship authored
      G_THREADS_ENABLED still exists, but is always defined. It is still
      possible to use libglib without threads, but gobject (and everything
      above it) is now guaranteed to be using threads (as, in fact, it was
      before, since it was accidentally impossible to compile with
      --disable-threads).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=616754
      5bc7729d
  5. 26 May, 2010 1 commit
  6. 25 May, 2010 1 commit
  7. 07 Nov, 2007 1 commit
    • Tor Lillqvist's avatar
      Not needed, just use -DPCRE_STATIC. · 7d2ec70a
      Tor Lillqvist authored
      2007-11-07  Tor Lillqvist  <tml@novell.com>
      
      	* glib/update-pcre/notdll.patch: Not needed, just use -DPCRE_STATIC.
      
      	* glib/update-pcre/Makefile.am: Drop notdll.patch.
      
      	* glib/update-pcre/Makefile.am-1
      	* glib/update-pcre/update.sh
      	* glib/pcre/Makefile.am
      	* glib/Makefile.am: Use -DPCRE_STATIC.
      
      	* tests/gio-test.c
      	* tests/mainloop-test.c
      	* tests/spawn-test.c: #define pipe(fds) _pipe(fds, 4096,
      	_O_BINARY) on Windows.
      
      	* tests/regex-test.c (test_expand): Don't print NULL with %s.
      
      
      svn path=/trunk/; revision=5805
      7d2ec70a
  8. 14 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      Make the tests silent on success. · 7221f500
      Matthias Clasen authored
      2005-07-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/spawn-test.c:
      	* tests/uri-test.c:
      	* tests/thread-test.c:
      	* tests/queue-test.c:
      	* tests/mainloop-test.c:
      	* tests/iochannel-test.c:
      	* tests/gio-test.c:
      	* tests/child-test.c: Make the tests silent on success.
      7221f500
  9. 15 Oct, 2002 1 commit
    • Manish Singh's avatar
      add -DG_DISABLED_DEPRECATED · d1f37d50
      Manish Singh authored
      Tue Oct 15 15:07:45 2002  Manish Singh  <yosh@gimp.org>
      
              * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
              add -DG_DISABLED_DEPRECATED
      
              * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
              tests/testglib.c test/tree-test.c tests/unicode-collate.c
              tests/unicode-normalize.c: Deprecation cleanup
      d1f37d50
  10. 14 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Fix a minor memory leak. · 27dc6983
      Owen Taylor authored
      Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              * tests/mainloop-test.c (adder_response): Fix a minor memory
              leak.
      27dc6983
  11. 29 Sep, 2002 1 commit
  12. 04 Jul, 2002 1 commit
  13. 02 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Recurse with may_block = FALSE, so we don't get into the pathology where · 3481763c
      Owen Taylor authored
      Thu Nov  1 21:48:43 2001  Owen Taylor  <otaylor@redhat.com>
      
              * tests/mainloop-test.c (recurser_idle): Recurse
              with may_block = FALSE, so we don't get into
              the pathology where the recurser_idle recurses
              for 10 iterations, and the only thing that is
              running is the recurser idle, which adds
              another recursion for each of those 10 iterations
              and....
      
              * tests/mainloop-test.c (create_crawler): Fix race
              condition where a crawler source could be destroyed
              before it was added to the crawler array.
      
              * test/Makefile.am: Add mainloop-test back.
      3481763c
  14. 20 Jul, 2001 1 commit
    • Hans Breuer's avatar
      make it compile again · 847d8e92
      Hans Breuer authored
      2001-07-20  Hans Breuer  <hans@breuer.org>
      
      	* glib/glib/giowin32.c : make it compile again
      
      	* glib/glib.def : updated exports
      
      	* glib/makefile.msc.in :
      	* glib/makefile.mingw.in :
      	* tests/makefile.msc.in : reflect glib move
      
      	* tests/mainloop-test.c : #include <io.h> for _pipe()
      
      	* tests/gio-test.c : casts for strict compiler settings
      
      	* makefile.msc.in : new master makefile reflecting the glib
      	move. The '.in' isn't really needed anymore, because there
      	is no version number in it
      847d8e92
  15. 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
  16. 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
  17. 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
  18. 17 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Define _GNU_SOURCE for stpcpy · c530e1e1
      Owen Taylor authored
      Tue Apr 17 10:43:36 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gstrfuncs.c: Define _GNU_SOURCE for stpcpy
      
      	* tests/mainloop-test.c (main): Wait for all threads
      	to start before beginning tests.
      c530e1e1
  19. 06 Jan, 2001 1 commit
    • Tor Lillqvist's avatar
      Get len using strlen() if arg is negative in the Win32 code, too. · deb68e15
      Tor Lillqvist authored
      2001-01-06  Tor Lillqvist  <tml@iki.fi>
      
      	* gconvert.c (g_locale_to_utf8, g_locale_from_utf8): Get len using
      	strlen() if arg is negative in the Win32 code, too.
      
      	* giowin32.c: Changes necessary to be able to run
      	mainloop-test. We can't close the fd that our (internal) reader
      	thread is sitting doing a blocking read() from. We must terminate
      	the thread first. Keep track of thread handle, and close it when
      	thread is dying. Start reader thread with the lower-level
      	CreateThread() instead of _beginthreadex() from the C runtime, in
      	order to be able to use TerminateThread(). Hopefuly this isn't
      	harmful.
      
      	* glib.def: Update.
      
      	* tests/makefile.{mingw,msc}.in (TESTS): Add mainloop-test and
      	unicode-encoding.
      
      	* tests/mainloop-test.c: Portability: <unistd.h>, need <fcntl.h>
      	on Win32.
      
      	* tests/unicode-encoding.c (process): Add missing "line" argument
      	to fail(). On Win32, convert UTF-16LE, as libiconv'c ivonf always
      	converts to UTF-16BE if we ask for unspecific UTF-16.
      	(main) Handle also '\r'.
      deb68e15
  20. 05 Jan, 2001 1 commit
    • Owen Taylor's avatar
      move $enable_debug down below checks for GCC to avoid setting CFLAGS · 956f00ed
      Owen Taylor authored
      Fri Jan  5 11:25:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (PACKAGE): move $enable_debug down below
      	checks for GCC to avoid setting CFLAGS prematurely,
      	change checks to avoid adding -g twice.
      
      	* gutf8.c (g_ucs4_to_utf8): Support len < 0 to mean
      	0 termination.
      
      	* gutf8.c (g_utf8_to_ucs4): Terminate result with 0.
      
      	* tests/mainloop-test.c (main): Fix uses of
      	g_main_loop_destroy().
      
      	* tests/unicode-encoding.c tests/Makefile.am tests/utf8.txt:
      	Tests for unicode-conversion code.
      
      	* gconvert.c (g_convert, g_convert_with_fallback): work around
      	a couple of GNU libc bugs.
      
      	* gconvert.[ch] (g_{locale,filename}_{to,from}_utf8): Standardize
      	arguments to match g_convert(). Document.
      
      	* gunicode.[ch]:
      	  - Implement conversion functions to and from UTF-16
      	  - Standardize unicode conversion functions on prototype like
      	    g_convert.
      	  - Add a lot of error checking to unicode conversion functions.
      
      	* gunicode.[ch] (g_utf8_to_ucs4_fast): Add fast, non-checking
      	variant of g_utf8_to_ucs4.
      
      	* gutf8.c (g_utf8_validate):
      	 - add g_return_if_fail (str != NULL).
      	 - add checks for overlong strings, non-valid Unicode characters (>= 110000)
      	   and single surrogates.
      956f00ed
  21. 07 Dec, 2000 1 commit
    • Owen Taylor's avatar
      Add a bunch of unrefs. · 1084477e
      Owen Taylor authored
      Thu Dec  7 15:22:30 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/mainloop-test.c (recurser_start): Add a bunch
      	of unrefs.
      
      	* gmain.c (g_source_attach): Reference the source
      	when adding (pointed out by Elliot)
      1084477e
  22. 05 Dec, 2000 1 commit
    • Owen Taylor's avatar
      Major change in API for creating sources to handle multiple main loops · e2fd4e2b
      Owen Taylor authored
      Tue Dec  5 12:23:04 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gmain.[hc]: Major change in API for creating sources
      	to handle multiple main loops (GMainContext *).
      
      	GSources are now exposed as GSource * and implemented
      	with structure derivation.
      
      	* giochannel.[ch]: Changed vtable for GIOChannel to correspond
      	to the new mainloop API, add g_io_channel_create_watch().
      
      	* gtypes.h: Move GTimeVal here.
      
      	* gthread.h: Remove gmain.h include to avoid circularity.
      
              * giounix.c: Update for new GMain API.
      
      	* giowin32.c: Update for new GMain API. (No check for
      	proper compilation or working.)
      
      	* timeloop.c timeloop-basic.c: A benchmarking program for
      	the main loop comparing the main loop against a
      	hand-written (timeloop-basic.c) variant.
      
      	* tests/mainloop-test.c: New torture test of mainloop.
      
      	* docs/Changes-2.0.txt: Started. Added text about
      	changes to GMain.
      
      	* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
      	to zero. (#8482, Benjamin Kahn)
      e2fd4e2b