> Em 04-02-2011 08:27, Cedric BAIL escreveu:
>> On Thu, Feb 3, 2011 at 6:26 PM, Rui Miguel Silva Seabra<r...@1407.org>
>> 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.

S.


------------------------------------------------------------------------------
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to