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. 18 Aug, 2012 1 commit
  4. 30 Apr, 2012 1 commit
  5. 03 Oct, 2011 1 commit
  6. 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
  7. 29 Aug, 2011 1 commit
    • Matthias Clasen's avatar
      Spelling fixes · 1b28408b
      Matthias Clasen authored
      Spelling fixes in comments and docs, provided by
      Kjartan Maraas in bug 657336.
      1b28408b
  8. 20 Jul, 2011 1 commit
    • Allison Karlitskaya's avatar
      wait longer in threadpool test case · dbd0d63b
      Allison Karlitskaya authored
      If we are going to fail an assert, wait for a bit longer before doing so
      (up to 5 seconds, if needed).
      
      This is a long-standing Debian patch to fix build failures on really
      slow machines.
      dbd0d63b
  9. 22 Jun, 2008 1 commit
  10. 29 Jan, 2008 1 commit
  11. 03 May, 2007 1 commit
  12. 07 Apr, 2006 2 commits
    • Martyn James Russell's avatar
      (test_thread_stop_unused): Removed an · eab7250b
      Martyn James Russell authored
      assertion which can fail and is not a critical test.
      eab7250b
    • Martyn James Russell's avatar
      Make sure g_thread_pool_stop_unused_threads() actually stops unused · 6c6f1713
      Martyn James Russell authored
      * glib/gthreadpool.c: Make sure
      g_thread_pool_stop_unused_threads() actually stops unused threads
      and global limits (like max idle time and max unused threads) can
      be set without creating a thread pool first. Fixed #335215 (patch
      from Chris Wilson).
      
      * tests/threadpool-test.c: Added two new tests, tests setting
      global limits before creating a thread pool. The second test
      makes sure unused threads are actually stopped when using the
      g_thread_pool_stop_unused_threads().
      6c6f1713
  13. 24 Mar, 2006 1 commit
    • Martyn James Russell's avatar
      Updated the documentation to explain that when the maximum threads is > 1 · f0ee594a
      Martyn James Russell authored
      * glib/gthreadpool.c: Updated the documentation to explain that
      when the maximum threads is > 1 the sort functionality is not 100%
      accurate due to the ramdom nature of the scheduler choosing which
      threads to execute. Fixes bug #334943.
      
      * tests/threadpool-test.c: Disabled the debugging by default and
      fixed the sort test to set the maximum threads to 1 to guarantee
      the thread entry function is called in order.
      f0ee594a
  14. 17 Jan, 2006 1 commit
    • Sebastian Wilhelmi's avatar
      To avoid deadlocks get rid of the settings G_LOCK. Use the · f4484f51
      Sebastian Wilhelmi authored
      
      2006-01-17  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	* glib/gthreadpool.c: To avoid deadlocks get rid of the settings
      	G_LOCK. Use the unused_thread_queue lock instead. Change
      	g_thread_pool_thread_proxy such that threads only wait on
      	non-exlusive pools for at most a 1/2 second. Do not reorder tasks
      	due to superfluous tasks. Global tasks wait at most for
      	max-idle-time milliseconds. Make sure, that no task is woken up
      	twice for the same event via a wakeup_serial. This fixes #324228.
      
      	* tests/threadpool-test.c: Adapt test accordingly. Do not pass
      	invalid NULL into the thread pools. This as well fixes #327290.
      f4484f51
  15. 03 Jan, 2006 1 commit
    • Martyn James Russell's avatar
      - Added new API g_thread_pool_get_idle_time() and · 941faa1c
      Martyn James Russell authored
      * docs/reference/glib/glib-sections.txt:
      * glib/glib.symbols:
      * glib/gthreadpool.[ch]:
      - Added new API g_thread_pool_get_idle_time() and
      g_thread_pool_set_idle_time(). (#324228).
      
      * tests/threadpool-test.c:
      - Updated test case to do thread pool sorting, thread pool with
      no sorting and a thread pool with idle thread timeouts.
      941faa1c
  16. 21 Dec, 2005 1 commit
  17. 20 Jul, 2005 1 commit
  18. 04 Jul, 2002 1 commit
  19. 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
  20. 28 Sep, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for · e885fe24
      Sebastian Wilhelmi authored
      
      2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Moved determination of G_THREAD_FLAGS before
      	G_THREAD_LIBS. Check for UnixWare systems and set the right cflags
      	and libs there (it needs -Kthread for the native compiler and
      	-pthread for gcc). Thanks to Boyd Lynn Gerber <gerberb@zenez.com>
      	for the info.
      
      	* configure.in: Fail immediately, when no thread library is found,
      	instead of continuing searching for rt libs etc. Changed almost
      	all occurances of $enable_threads to $have_threads, as that's,
      	what we want.
      
      	* tests/threadpool-test.c: Define vars inside the guard to avoid
      	warnings.
      e885fe24
  21. 01 Sep, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Include gerror.h before it is used for some g_thread_* functions. · 64bbfbb6
      Sebastian Wilhelmi authored
      
      2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h: Include gerror.h before it is used for some g_thread_*
      	functions.
      
      	* gthread.c, gthreadpool.c, glib.h: Enable error reporting for
      	thread creation, namly for g_thread_create, g_thread_pool_new,
      	g_thread_pool_push and g_thread_pool_set_max_threads.
      
      	* tests/thread-test.c, tests/threadpool-test.c: Adapted
      	accordingly.
      
      	* gthread-posix.c (g_thread_create_posix_impl): Use GError to
      	report errors.
      64bbfbb6
  22. 28 Apr, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      New File implementing an asynchronous queue to be used for asynchronous · 1418fe3a
      Sebastian Wilhelmi authored
      
      2000-04-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gasyncqueue.c: New File implementing an asynchronous queue to be
      	used for asynchronous inter-thread communication.
      
      	* gthreadpool.c: New File implementing a thread pool to be used
      	for distributing work among several threads.
      
      	* glib.h: Added the type and function declarations for these two
      	types.
      
      	* tests/threadpool-test.c: New File implementing a test for the
      	thread pool. This also checks the asynchronous queue underlying
      	the thread pool.
      
      	* tests/Makefile.am: Changed accordingly.
      1418fe3a