[anjuta] am-project: don't use deprecated g_thread_create()



commit 614b4afbe29f14ae3e28069e969856d03dd0c466
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Wed May 15 18:22:11 2013 +0200

    am-project: don't use deprecated g_thread_create()

 plugins/am-project/command-queue.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/am-project/command-queue.c b/plugins/am-project/command-queue.c
index d479c7d..01eb5b8 100644
--- a/plugins/am-project/command-queue.c
+++ b/plugins/am-project/command-queue.c
@@ -169,13 +169,14 @@ pm_command_queue_thread_main_loop (PmCommandQueue *queue)
  *---------------------------------------------------------------------------*/
 
 static gboolean
-pm_command_queue_start_thread (PmCommandQueue *queue, GError **error)
+pm_command_queue_start_thread (PmCommandQueue *queue)
 {
        queue->done_queue = g_async_queue_new ();
        queue->work_queue = g_async_queue_new ();
        queue->job_queue = g_queue_new ();
 
-       queue->worker = g_thread_create ((GThreadFunc) pm_command_queue_thread_main_loop, queue, TRUE, error);
+       queue->worker = g_thread_new ("am-project-worker",
+                                     (GThreadFunc) pm_command_queue_thread_main_loop, queue);
 
        if (queue->worker == NULL) {
                g_async_queue_unref (queue->work_queue);
@@ -390,7 +391,7 @@ pm_command_queue_new (void)
        queue->stopping = FALSE;
        queue->busy = 0;
 
-       pm_command_queue_start_thread (queue, NULL);
+       pm_command_queue_start_thread (queue);
        
        return queue;
 }


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