Hello Saúl You are welcome, I will add it :D
Greetings, Mahmoud On Wednesday, January 31, 2018 at 5:46:24 PM UTC+3, Saúl Ibarra Corretgé wrote: > > > > > On Jan 27, 2018, at 12:45, Mahmoud Fayed <[email protected] > <javascript:>> wrote: > > > > Hello > > > > Starting from the Ring programming language (http://ring-lang.net) > version 1.7 > > > > We provided RingLibuv extension : > https://github.com/ring-lang/ring/tree/master/extensions/ringlibuv > > > > Documentation : http://ring-lang.sourceforge.net/doc1.7/libuv.html > > > > Example (1) : > > > > load "libuv.ring" > > > > func main > > myloop = new_uv_loop_t() > > uv_loop_init(myloop) > > ? "Now quitting" > > uv_run(myloop, UV_RUN_DEFAULT) > > uv_loop_close(myloop) > > destroy_uv_loop_t(myloop) > > > > Example (2) > > > > load "libuv.ring" > > load "objectslib.ring" > > > > ? "Testing RingLibuv - Threads - Using Classes" > > > > open_object(:MyThreads) > > > > class MyThreads from ObjectControllerParent > > > > func Start > > one_id = new_uv_thread_t() > > two_id = new_uv_thread_t() > > uv_thread_create(one_id, Method(:One)) > > uv_thread_create(two_id, Method(:Two)) > > uv_thread_join(one_id) > > uv_thread_join(two_id) > > destroy_uv_thread_t(one_id) > > destroy_uv_thread_t(two_id) > > > > func one > > ? "Message from the First Thread!" > > > > func Two > > ? "Message from the Second Thread!" > > > > Greetings, > > Mahmoud > > > > > > Excellent, thanks for sharing! Have you added it to the wiki? > > > > > -- > > You received this message because you are subscribed to the Google > Groups "libuv" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at https://groups.google.com/group/libuv. > > For more options, visit https://groups.google.com/d/optout. > > -- > Saúl > > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
