[anjuta/libgit2-glib: 10/18] libanjuta/anjuta-thread-pool: Add a constructor method



commit b17be7001eba80ca1560fbbc545ff9d0ae724f59
Author: James Liggett <jrliggett cox net>
Date:   Sat Jul 6 14:55:51 2013 -0700

    libanjuta/anjuta-thread-pool: Add a constructor method

 libanjuta/anjuta-thread-pool.c |    7 +++++++
 libanjuta/anjuta-thread-pool.h |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libanjuta/anjuta-thread-pool.c b/libanjuta/anjuta-thread-pool.c
index a2fa6d2..ddf48a2 100644
--- a/libanjuta/anjuta-thread-pool.c
+++ b/libanjuta/anjuta-thread-pool.c
@@ -70,3 +70,10 @@ anjuta_thread_pool_push (AnjutaThreadPool *self, AnjutaThreadPoolTask *task)
        anjuta_thread_pool_task_notify_waiting (task);
        g_thread_pool_push (self->priv->thread_pool, task, NULL);
 }
+
+AnjutaThreadPool *
+anjuta_thread_pool_new (void)
+{
+       return g_object_new (ANJUTA_TYPE_THREAD_POOL, NULL);
+}
+
diff --git a/libanjuta/anjuta-thread-pool.h b/libanjuta/anjuta-thread-pool.h
index 3eddf47..2efa60f 100644
--- a/libanjuta/anjuta-thread-pool.h
+++ b/libanjuta/anjuta-thread-pool.h
@@ -53,6 +53,7 @@ GType anjuta_thread_pool_get_type (void) G_GNUC_CONST;
 
 void anjuta_thread_pool_push (AnjutaThreadPool *self, 
                               AnjutaThreadPoolTask *task);
+AnjutaThreadPool *anjuta_thread_pool_new (void);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]