On Fri, Feb 4, 2011 at 10:40 AM, <[email protected]> wrote: >> Em 04-02-2011 08:27, Cedric BAIL escreveu: >>> On Thu, Feb 3, 2011 at 6:26 PM, Rui Miguel Silva Seabra<[email protected]> >>> wrote: >>>> Em 25-01-2011 05:36, Ian Caldwell escreveu: >>>>> Lets hear your thoughts... >>>> >>>> Thread safety for ecore! >>> >>> Ecore already provide facility to handle thread, thread safety are >>> really not needed. But Efreet mime type could really be thread safe >>> that would be highly usefull ! >> >> How do you make two downloads in the background at the same time, then? > > You don't need threads for that. You can now download several things at > once, see for example ecore_file_download. You pass a completion callback, > and the main loop will download a bit each time data is ready (limited to > frametime). Then the main loop will do other stuff and continue > downloading when data is ready. > > Or you create a ecore_thread and do the download there. If you need to > pass information about the download to the main loop during download, use > an ecore_pipe.
You can now create an Ecore_Thread that directly provide notification via an Ecore_Pipe. No need to learn that part anymore, just send notification from your thread and the main loop callback will wake up with the data. -- Cedric BAIL ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
