On Tue, 7 Jul 2009 14:13:16 -0400 Atton Jonathan <[email protected]>
said:

> What happend if 2 threads call ecore_pipe_write at the same time and with
> the same fd ? Is it working ?

as long as your messages are less than 4k.. it will. be fine. but to be
honest... i would set up a pipe per thread. this is clean. it's the intended
use :) and has no 4k issue. though you likely have tiny messages - eg a pointer
TO the message struct - then u only need 4byte (or 8 on 64bit) messages - it's
a stream of pointers to data from the thread. :) what you do with it then is
another matter (generally i'd have the main thread deal with it then free any
data needing freeing).

> 2009/7/7 Vincent Torri <[email protected]>
> 
> >
> > Hey,
> >
> > > I am working on Edge/ Evas project. Where I am using Multiple Threads. I
> > > want to update the canvas from a different thread. But the problem I am
> > > facing is that the Canvas gets updated only when I touches the screen.
> > >
> > > Do you have any idea. I have read some were that Evas /EFL is not thread
> > > safe. Then how to do that ?????
> >
> > the efl are indeed not thread safe, so you have no option : you must use
> > them in the same thread (the main one). What you can do is, in your
> > thread, using pipes to send informations to the ecore event loop. Use
> > ecore_pipe for that. See ecore_pipe.c or emotion_gstreamer.c for examples
> > of use of ecore_pipe
> >
> > Vincent
> >
> >
> > ------------------------------------------------------------------------------
> > Enter the BlackBerry Developer Challenge
> > This is your chance to win up to $100,000 in prizes! For a limited time,
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full prize
> > details at: http://p.sf.net/sfu/blackberry
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> 
> 
> 
> -- 
> Regards.
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have 
> the opportunity to enter the BlackBerry Developer Challenge. See full prize 
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to