On Sun, 11 Feb 2007 16:28:57 +0100 Andreas Volz <[EMAIL PROTECTED]> babbled:

> Am Sat, 10 Feb 2007 06:19:38 +0900 schrieb Carsten Haitzler (The
> Rasterman):
> 
> > 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). 
> 
> The gpsd API creates a thread which creates (more or less) asynchronous
> a callback function with GPS information. I'm sure this could be done
> without threads, but gpsd uses threads. So I've to live with it and
> sync it with my GUI. :-)

oh - god. those api's SUCK. they impose threads on their callers, like it or
not. very evil. threads should (imho) be hidden from any calling process.
libxine does this and i did some evil stuff to hide this in emotion and merge
it all back to the main thread - i used fd_handlers too (and a pipe). it seems
to work just fine as it's being used for every frame that is rendered.

-- 
------------- 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

Reply via email to