On Tue, 17 Dec 2013 10:43:03 +0900 Cedric BAIL <[email protected]> wrote:
> Hello, > > On Tue, Dec 17, 2013 at 5:46 AM, David Seikel <[email protected]> > wrote: > > On Mon, 16 Dec 2013 20:43:05 +0900 Carsten Haitzler (The Rasterman) > > <[email protected]> wrote: > > > >> On Mon, 16 Dec 2013 08:39:47 +0100 dumblob <[email protected]> > >> 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. I'll look into that next time I work on this stuff. > > 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. I had posted it to this list before - https://github.com/onefang/SledjHamr/tree/experimental/LuaSL It's part of the SledjHamr project, which is itself a motley collection of bits and pieces that should eventually merge into my vision of how virtual worlds should work. I've not touched it for months, but I should soon be able to get back to it, say early next year. -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world.
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
