Use new macro.

This commit is contained in:
Patrick Pelissier committed 2018-01-29 21:59:57 +01:00
1 parent 603bdd2941
commit a3e2e75021
1 file changed
+2
+2
View File
@@ -215,6 +215,8 @@ worker_init(worker_t g, unsigned int numWorker, unsigned int extraQueue, void (*
m_thread_create(g->worker[i].id, workeri_thread, M_ASSIGN_CAST(void*, g));
}
}
// Define function with default values.
#define worker_init(...) worker_init(M_DEFAULT_ARGS(4, (0, 0, NULL), __VA_ARGS__))
/* Clear of the worker module */
static inline void