Don't use "wait" as parameter name. (#379207, Christian Biere)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Dec 2006 20:27:02 +0000 (20:27 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 17 Dec 2006 20:27:02 +0000 (20:27 +0000)
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthreadpool.h:
        * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
        as parameter name.  (#379207, Christian Biere)

ChangeLog
glib/gthreadpool.c
glib/gthreadpool.h

index 6f84253861e64d49563e73b03ff733a6ce122e15..0c0b89efb510f88c439f7604ce07a6b66587e207 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-12-17  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gthreadpool.h:
+       * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
+       as parameter name.  (#379207, Christian Biere)
+
        * glib/gspawn.c: Refer to g_child_watch_add() in addition
        to waitpid().
 
index b136405e0352b9cca69f732234d7f92374a4102d..ec50609b1b6ffc49424c7affbab6b2f560fc8f2c 100644 (file)
@@ -649,7 +649,7 @@ g_thread_pool_unprocessed (GThreadPool *pool)
  * g_thread_pool_free:
  * @pool: a #GThreadPool
  * @immediate: should @pool shut down immediately?
- * @wait: should the function wait for all tasks to be finished?
+ * @wait_: should the function wait for all tasks to be finished?
  *
  * Frees all resources allocated for @pool.
  *
@@ -659,7 +659,7 @@ g_thread_pool_unprocessed (GThreadPool *pool)
  * interrupted, while processing a task. Instead at least all still
  * running threads can finish their tasks before the @pool is freed.
  *
- * If @wait is %TRUE, the functions does not return before all tasks
+ * If @wait_ is %TRUE, the functions does not return before all tasks
  * to be processed (dependent on @immediate, whether all or only the
  * currently running) are ready. Otherwise the function returns immediately.
  *
@@ -668,7 +668,7 @@ g_thread_pool_unprocessed (GThreadPool *pool)
 void
 g_thread_pool_free (GThreadPool *pool,
                    gboolean     immediate,
-                   gboolean     wait)
+                   gboolean     wait_)
 {
   GRealThreadPool *real;
 
@@ -688,9 +688,9 @@ g_thread_pool_free (GThreadPool *pool,
 
   real->running = FALSE;
   real->immediate = immediate;
-  real->waiting = wait;
+  real->waiting = wait_;
 
-  if (wait)
+  if (wait_)
     {
       real->cond = g_cond_new ();
 
index 371b9ef1e75e05e1b78a376037cdd27bc349c543..91a02d6ae436ef28ebca5e57d9f39f6042a29ab1 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 */