Hi directfb-dev.


I've been toying with DirectFB for about a week now on an

embedded platform that uses the AMD (formerly NSC) Geode GX1.

I'm pretty impressed with DirectFB.



I would like to use pthreads with DirectFB.  What does it

take to do this?  The DirectFB core must be threadsafe

because it runs multiple threads.  But what about the

interfaces, particularly IDirectFBSurface structures?  If

I want to do this, should I only limit myself to using the

DirectFB core?



As a quick test, I tried to add pthreads into the displaying

text tutorial.  This resulted in a segmentation fault at Flip().

I made sure to lock the surface with pthread_mutex_lock and

_unlock, but that made no difference.



(Once I get it working, I'd be happy to donate my example code

to the tutorials.)



What's the best way to write a multithreaded DirectFB

application?  It's possible that I just screwed up the

pthread-ifying... 



Thanks



_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com


Reply via email to