Hello,

On Tue, Dec 17, 2013 at 5:46 AM, David Seikel <onef...@gmail.com> wrote:
> On Mon, 16 Dec 2013 20:43:05 +0900 Carsten Haitzler (The Rasterman)
> <ras...@rasterman.com> wrote:
>
>> On Mon, 16 Dec 2013 08:39:47 +0100 dumblob <dumb...@gmail.com> said:
>>
>> > Thank you. If I got it correctly, it will be possible to use BÖBs C
>> > API from parallel threads without being afraid something will break
>> > up. That's neat and I'll look forward to testing first alpha
>> > versions in a few years :).
>>
>> no - unlikely unless we got to lots of effort to make the c api
>> threadsafe. most of efl is not threadsafe. only eina and eet are,
>> with ecore (some of it) optionally. since bob will interface directly
>> to evas - thus evas's api would need to be threadsafe for bob to be
>> threadafe and... we're not likely doing this. marshall all your bob
>> calls back to the mainloop and do them there. we have plenty of infra
>> for just that without any locks.
>
> Just as a point of interest, my experiments with using LuaJIT in EFL
> found that the Lua stuff itself is threadsafe so long as we use a
> thread safe memory allocator, which LuaJIT itself provides.  The memory
> allocator we currently use in Edje Lua is not thread safe.  I've been
> meaning to ask, do we have a threadsafe memory allocator in Eina?

Depend what you are looking for. If an eina_mempool does fit your
need, then they are threadsafe. If you are need a more general purpose
allocator, malloc should be fine.

> You are correct though, the rest of EFL is not as thread safe.  My
> LuaJIT experiments involved enough message passing to deal with the
> "marshall all your bob calls back to the mainloop" you mentioned.

Care to share the code of your experiment, I am quite interested in it.
-- 
Cedric BAIL

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to