* @todo make this a registry
*/
if (sc->worker_thread_instantiate &&
- (sc->worker_thread_instantiate(sc->worker_instantiate_ctx) < 0)) {
+ (sc->worker_thread_instantiate(sc->worker_instantiate_ctx, fr_worker_el(sw->worker)) < 0)) {
fr_log(sc->log, L_ERR, "Worker %d - Failed calling thread instantiate: %s", sw->id, fr_strerror());
goto fail;
}
#endif
typedef struct fr_schedule_t fr_schedule_t;
-typedef int (*fr_schedule_thread_instantiate_t)(void *ctx);
+typedef int (*fr_schedule_thread_instantiate_t)(void *ctx, fr_event_list_t *el);
fr_schedule_t *fr_schedule_create(TALLOC_CTX *ctx, fr_log_t *log, int max_inputs, int max_workers,
fr_schedule_thread_instantiate_t worker_thread_instantiate,