On Tue, Mar 27, 2012 at 1:08 PM, Torsten Pfüller <[email protected]> wrote: > Hi, > > short question on internals of monkey-http: > > what's the difference in usage between plugin-hooks > _mkp_init vs. _mkp_core_prctx ?
_mkp_init() = plugin initialization, the first function invoked by Monkey after load the shared library _mkp_core_prctx = process context, this its a hook function invoked by monkey before it spawn the workers threads, so if your plugin requires to set some data at process context you use this hook. When Monkey starts its on a process context, then it spawn worker threads, so your plugin can take an action on every section of the initialization of Monkey. feel free to ask if is not clear enough.. regards, > > Greets, > Torsten > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey -- Eduardo Silva http://edsiper.linuxchile.cl http://www.monkey-project.com _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
