The Assimilation Project  based on Assimilation version
Go to the documentation of this file.
24 #include <projectcommon.h>
25 #include <assimobj.h>
26 #include <configcontext.h>
27 #include <resourcecmd.h>
49  GHashTable* resources;
50  gint timerid;
52  gboolean shuttingdown;
53  void (*settimeout)(ResourceQueue*, guint timeout); //< Set default timeout
54  guint (*gettimeout)(ResourceQueue*, guint timeout); //< Return default timeout
55  gboolean (*Qcmd)(ResourceQueue* self //< Our R.Q. object
56 , ConfigContext* request //< The request to perform
57 , ResourceCmdCallback callback //< Callback to call when done
58 , gpointer user_data); //< User data to pass callback
59  gboolean (*cancel)(ResourceQueue* self //< Our R.Q. object
60 , ConfigContext* request); //< Request to cancel
61  void (*cancelall)(ResourceQueue* self); //< Cancel all requests
62 };
63 WINEXPORT ResourceQueue* resourcequeue_new(guint structsize); //< Construct new R.Q.
66 #endif/*_RESOURCEQUEUE_H*/
void(* ResourceCmdCallback)(ConfigContext *request, gpointer user_data, enum HowDied reason, int rc, int signal, gboolean core_dumped, const char *stringresult)
Definition: resourcecmd.h:44
gboolean(* Qcmd)(ResourceQueue *self, ConfigContext *request, ResourceCmdCallback callback, gpointer user_data)
Definition: resourcequeue.h:55
gboolean(* cancel)(ResourceQueue *self, ConfigContext *request)
Definition: resourcequeue.h:59
Definition: projectcommon.h:45
gint timerid
id of our run timer
Definition: resourcequeue.h:50
gint activechildcnt
Count of active child processes.
Definition: resourcequeue.h:51
This file defines our base object class: AssimObj.
GHashTable * resources
Table of resource queues.
Definition: resourcequeue.h:49
gboolean shuttingdown
TRUE means we&#39;ll shut down when last job finishes.
Definition: resourcequeue.h:52
guint(* gettimeout)(ResourceQueue *, guint timeout)
Definition: resourcequeue.h:54
Project common header file.
Implements Configuration Context class.
AssimObj baseclass
Base object: implements ref, unref, toString.
Definition: resourcequeue.h:48
void(* settimeout)(ResourceQueue *, guint timeout)
Definition: resourcequeue.h:53
Implements the resource command abstract class.
void(* cancelall)(ResourceQueue *self)
Definition: resourcequeue.h:61
WINEXPORT ResourceQueue * resourcequeue_new(guint structsize)
Construct a new ResourceQueue system (you probably only need one)
Definition: resourcequeue.c:80