summaryrefslogtreecommitdiff
path: root/executor.h
blob: 622a55e780a19c5d1853abef802b8aff80a4024e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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