Re: Mailsemaphore / pthread library / PDA Software

Rajko Albrecht <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Am Sonntag, 17. Oktober 2004 15:56 schrieb DINH Viet Hoa:
> Rajko Albrecht wrote :
> > Of course this is fine, but not on PDAs :(
>
> Waht is available on your PDA target.
> Because, I noticed that there were some pthread calls that seemed to
> work fine on your PDA, such as pthread_mutex_lock().
>
> Do you have any detailed information about POSIX thread availability
> on your PDA plateform ?
>
> Is /usr/include/semaphore.h present ?

Yes, of course its all present. I think I had said it in a wrong way: Per 
default on linux-based PDAs is a libpthread. The problems are more the gui 
(qt/Embedded based) cause qt/Embedded 2 isn't threadsafe. (otherwise it will 
linked against pthread itself). 

Due size limits and so on we must try to reduce the dependies to external 
libs. Eg.: we can not use threads with qt/E 2. So we will not build threaded 
applications. (We == OPIE team). So we don't require the libpthread linked to 
apps.

Otherwise: newser QT/E are threadsafe. eg., are linked against pthread. But: 
then we will create threaded applictions in another way, eg., we make our 
apps threadsafe on a higher level. Eg., we don't require thread-safe base 
libs (from our point of view etpan is such a baselib) (at current moment I 
see). 

May be that later we require that or it isn't a size/runtime problem linking 
apps against libpthread (or other: in threaded QT/E all apps are linked 
against pthread). But this moment its just not used and makes our apps a 
little bit slower and larger. And last isn't that good on small handheld 
systems ;)

Rajko
p.s.: I forgot: As I see and got reported the libetpan + OPIE-Mail are working 
real fine and stable and meanwhile there is at least on clone of opiemail for 
linux-based handhelds out, eg. not for OPIE but for qt-based handhelds.
good work getting libetpan working with ARM.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.