Hi, all

This week I spent some time on investigating how to add dthread apis to the
existing duda mariadb package and realized that it isn't as easy as I
expected. This time we need to deal with file events: when we are opening a
new connection to the database, if the connection can be established
immediately, we just return the newly established connection and otherwise
we yield back to main dthread. We also registered some events that we are
interested of the correspondig fd, once those events are fired, we just
resume back to where the connection creation process suspended. Thus the
code will look like as we are dealing with blocking database apis.

The new apis will be added in 2~3 days and a new example demostrating their
usage will also be available.

Besides, I've modified the interfaces dthread by removing the element
destructor of dthread_open and adding return value to dthread_send.

Next week will be mainly devoted to the documentation of dthread as the
'pencil down' date of GSoC is coming.

Blog Post:
http://blog-swpd.rhcloud.com/gsoc-2014-update-duda-io-coroutines-week-12/

Github Repo: https://github.com/swpd/duda/tree/dthread

Best Regards,

swpd
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to