#define sig_monitor(to,cb,arg) (cb(0,arg))
#endif
#define sig_monitor(to,cb,arg) (cb(0,arg))
#endif
/** Internal shortcut for callback */
typedef void (*job_cb_t)(int, void*, void *, void*);
/** Internal shortcut for callback */
typedef void (*job_cb_t)(int, void*, void *, void*);
NOTICE("job thread starting %d(/%d) %s", started, allowed, me->upper ? "child" : "parent");
NOTICE("job thread starting %d(/%d) %s", started, allowed, me->upper ? "child" : "parent");
me->events = events;
pthread_mutex_unlock(&mutex);
sig_monitor(0, events_call, events);
me->events = events;
pthread_mutex_unlock(&mutex);
sig_monitor(0, events_call, events);
NOTICE("job thread stoping %d(/%d) %s", started, allowed, me->upper ? "child" : "parent");
/* unlink the current thread and cleanup */
NOTICE("job thread stoping %d(/%d) %s", started, allowed, me->upper ? "child" : "parent");
/* unlink the current thread and cleanup */