From: Vitor S. C. <vs...@gm...> - 2014-06-16 12:40:45
|
On Mon, Jun 16, 2014 at 1:03 PM, Davide Nitti <dav...@cs...> wrote: > thanks for the reply! >> Have a look at >> >> YAP_ThreadCreateEngine, YAP_ThreadAttachEngine, >> YAP_ThreadDetachEngine, YAP_ThreadDestroyEngine. I think that is briefly explained in the YAP manual. You can also look at swi.c and that shows how it is used to implement the next one: YAP also supports the >> thread creation ops in the SWi interface: >> >> PL_thread_self() >> PL_unify_thread_id() >> PL_thread_attach_engine() >> PL_thread_destroy_engine() >> PL_thread_at_exit() >> That is explained in the SWI page. > do you have some documentations or example for those functions? >> You may want to have a look at the directory CXX in yap-6.3.4. > any example/doc for this as well? > Look into packages/swig/python/demo.py for a simple example of how to use the interface from python. A Java/android example is at packages/swig/android but that is being developed. Last, the yapi.hh file has some documentation in doxygen format. The yapi interface is work in progress, of course. Thanks! Vitor > thanks! > > Davide > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |