summaryrefslogtreecommitdiff
path: root/glib/gthreadpool.h
diff options
context:
space:
mode:
authorMartyn James Russell <mr@src.gnome.org>2006-01-03 15:09:52 +0000
committerMartyn James Russell <mr@src.gnome.org>2006-01-03 15:09:52 +0000
commit941faa1ca951e2e6ef39dddc9ef3867bf773625f (patch)
tree631cd53b7f882aee3a8702f7c947dd22cfd5c944 /glib/gthreadpool.h
parentbe5d72cba0804d94d32b71f7c9ff082c33cbaa65 (diff)
downloadglib-941faa1ca951e2e6ef39dddc9ef3867bf773625f.tar.gz
- Added new API g_thread_pool_get_idle_time() and
* 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.
Diffstat (limited to 'glib/gthreadpool.h')
-rw-r--r--glib/gthreadpool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/gthreadpool.h b/glib/gthreadpool.h
index e0bb14642..371b9ef1e 100644
--- a/glib/gthreadpool.h
+++ b/glib/gthreadpool.h
@@ -101,6 +101,10 @@ void g_thread_pool_set_sort_function (GThreadPool *pool,
GCompareDataFunc func,
gpointer user_data);
+/* Set maximum time a thread can be idle in the pool before it is stopped */
+void g_thread_pool_set_max_idle_time (guint interval);
+guint g_thread_pool_get_max_idle_time (void);
+
G_END_DECLS
#endif /* __G_THREADPOOL_H__ */