Hi, all This week is a big step forward of my project! After discussing with acidx, I turned on the USE_VALGRIND switch while compiling the coro package, and all the stupid invalid memory access errors are gone. All the examples just work as I expected since then.
Edsiper and I also have worked together during the last serveral days to bring the coro package into the core api of duda <https://github.com/monkey/duda/commits?author=swpd>, thus other existing packages can benefit from the coro support. And coro is now renamed to dthread(duda thread), all the examples are modified to use the new apis and a simplified version of Makefile.in. One of the example shows how to make use of channel as communication mechanism to send fibonacci sequence on user request. In short, there is a productor dthread that produces fibonacci sequences while another consumer is responsible for sending the sequences to user end. For more details about this example, please refer to here <https://github.com/monkey/duda-examples/tree/master/080-dthread-fibonacci>. For the next week, I will make some modification to the dthread apis to make it more convenient. Besides, I will start to write the documenation and add new dthread apis to existing db packages. Blog Post : http://blog-swpd.rhcloud.com/gsoc-2014-update-duda-io-coroutines-week-11/ Github Repo: https://github.com/monkey/duda/commits?author=swpd https://github.com/swpd/duda-examples/tree/master/080-dthread-fibonacci Best Regards, swpd
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
