In mk_plugin.c you can find the function mk_plugin_event_add. It is called in worker thread context and* it has sched structure **always*. If you take a glance in mk_scheduler, you'll find the next lines in mk_sched_launch_worker_loop(): ... thinfo = &sched_list[wid] ... pthread_setspecific(worker_sched_node, (void *) thinfo);
2012/3/24 Lauri Kasanen <[email protected]> > On Sat, 24 Mar 2012 08:27:59 -0600 > Eduardo Silva <[email protected]> wrote: > > > Hi, > > > > not applicable. mk_bug() must be used just to avoid bad parameters by > > the developer. Also exists some conditions where the sched node can be > > NULL and not necessary its a bug. > > Ok. But if sched can be NULL, monkey would segfault in > mk_epoll_add(sched->epoll_fd, socket, mode, behavior); > ^^^^^^ here. > > Perhaps that should be moved inside the if then? > > -- > - Lauri > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey >
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
