diff options
Diffstat (limited to 'executor.h')
-rw-r--r-- | executor.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/executor.h b/executor.h new file mode 100644 index 0000000..622a55e --- /dev/null +++ b/executor.h @@ -0,0 +1,18 @@ +#ifndef EXECUTOR_H +#define EXECUTOR_H + +#include <glib.h> + +typedef struct Executor Executor; + +typedef void (* ExecutorJob) (gpointer data); + +Executor *executor_new (guint n_threads); +void executor_add_job (Executor *exe, + ExecutorJob job, + gpointer data); +void executor_free (Executor *executor); +void executor_sync (Executor *executor); + +#endif + |