more atomic ops pointer cast fixes. this time it'll work with atomic op
[platform/upstream/glib.git] / glib / gthreadpool.h
index e0bb146..91a02d6 100644 (file)
@@ -85,7 +85,7 @@ guint           g_thread_pool_unprocessed     (GThreadPool     *pool);
  * does however not mean, that threads are killed. */
 void            g_thread_pool_free            (GThreadPool     *pool,
                                                gboolean         immediate,
-                                               gboolean         wait);
+                                               gboolean         wait_);
 
 /* Set the maximal number of unused threads before threads will be stopped by
  * GLib, -1 means no limit */
@@ -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__ */