New function to sort tasks pushed into a threadpool. (#324479, Martyn

2005-12-20  Matthias Clasen  <mclasen@redhat.com>

	* glib/glib.symbols:
	* glib/gthreadpool.h:
	* glib/gthreadpool.c (g_thread_pool_set_sort_function): New function
	to sort tasks pushed into a threadpool.  (#324479, Martyn Russell)

	* tests/threadpool-test.c: Test this.
This commit is contained in:
Matthias Clasen
2005-12-21 04:45:56 +00:00
committed by Matthias Clasen
parent 3f9d65375e
commit 700a71f010
9 changed files with 314 additions and 32 deletions

View File

@@ -1,3 +1,7 @@
2005-12-20 Matthias Clasen <mclasen@redhat.com>
* glib/glib-sections.txt: add g_thread_pool_set_sort_function.
2005-12-19 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/*.sgml: Update versioned deprecation

View File

@@ -637,6 +637,7 @@ g_thread_pool_set_max_unused_threads
g_thread_pool_get_max_unused_threads
g_thread_pool_get_num_unused_threads
g_thread_pool_stop_unused_threads
g_thread_pool_set_sort_function
</SECTION>
<SECTION>