diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-09-20 13:22:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-09-20 13:22:53 (GMT) |
commit | f7c1c34cb54b239586bf431b1749759baee9493e (patch) | |
tree | 24b2954e45202bcc36f60166112a23acf931be1f /src/glibext/delayed.h | |
parent | 859bdb6b51d76058eb1a8bfa619a15978f50b251 (diff) |
Rewritten the work queue and fixed thread concurrency.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@117 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext/delayed.h')
-rw-r--r-- | src/glibext/delayed.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/glibext/delayed.h b/src/glibext/delayed.h index d1e3967..501bb7f 100644 --- a/src/glibext/delayed.h +++ b/src/glibext/delayed.h @@ -26,6 +26,7 @@ #include <glib-object.h> +#include <stdbool.h> @@ -70,11 +71,20 @@ typedef struct _GWorkQueue GWorkQueue; typedef struct _GWorkQueueClass GWorkQueueClass; +#define get_work_queue() _get_work_queue(NULL) + + /* Indique le type défini pour le gestionnaire des travaux différés. */ GType g_work_queue_get_type(void); +/* Procède au chargement du gestionnaire d'analyse différées. */ +bool init_work_queue(GObject *); + +/* Fournit le gestionnaire de traitements parallèles courant. */ +GWorkQueue *_get_work_queue(GWorkQueue *); + /* Place une nouvelle tâche en attente. */ -void g_delayed_queue_schedule_work(GWorkQueue *, GDelayedWork *); +void g_work_queue_schedule_work(GWorkQueue *, GDelayedWork *); |