On Thu, 25 Jan 2007 00:53:12 +0100 Andreas Volz <[EMAIL PROTECTED]> babbled:
> Hello, > > as evas isn't thread save (like Gtk) it's a problem to update the GUI correct :) > periodic from a thread. They told me in #edevelop how to solve this > with use of pipes. But I think it's complicated. There's a nice concept > in Gtk(mm) that works with an Dispatcher. You don't need to know > anything about pipes for using it. Does something similar exist also > for ecore or do you think about implementing it? then this dispatcher needs to be threadsafe too. either way - you need to make something threadsafe, and pipes/fd's already are :) personally i ask - why do you need threads? threads are for people who can't schedule their own code (or in rare cases when api's or syscalls literally may block for long periods and you have no choice). > Example how to use a Dispatcher (in C++): > > Glib::Dispatcher dispatchSignal; > > GPSConnection::GPSConnection () > { > dispatchSignal.connect(sigc::mem_fun(*this, &GPSConnection::update)); > } > > void GPSConnection::mycallbackThread (...) > { > // work, mutex, ... > > dispatchSignal (); > } > > void GPSConnection::update () > { > // work, mutex, ... > > gpsConGlobal->signalData.emit (&gpsDataLocal); > } > > ... and it simply works. So is there something similar in ecore? > > regards > Andreas > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel