> If you are using Duda I/O let me know as it would be a bit different. Feel > free to send your questions,
What is a Duda I/O? What is its purposes? On 6/8/13, Eduardo Silva <[email protected]> wrote: > Hi, > > > On Fri, Jun 7, 2013 at 10:53 PM, Aris Setyawan <[email protected]> wrote: > >> Hi, >> >> Is it possible to create BerkeleyDB context per monkey thread? >> > > If you have your own API or library for BerkeleyDB the answer is Yes. > > The key to accomplish that is to create a connection in _mkp_thctx() hook, > create the context an save that pointer in a thread key > (pthread_key_create() ). So every time you want to retrieve the database > context on each worker you just do pthread_getspecific(key_name). > > If you are using Duda I/O let me know as it would be a bit different. Feel > free to send your questions, > > regards, > > -- > Eduardo Silva > http://edsiper.linuxchile.cl > http://monkey-project.com > _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
