> 
> Thanks for the answer. By the way, what do you use for 
> threads? It seems FLTK doesn't have most of the things you'd 
> usually use with threads, like locks, monitors, etc.

I used to use SAL (http://www.garret.ru/SAL) though there are a great
many other similar libs that can be used.

However, over time I found that I didn't actually need any of that stuff
to make my code work.
Indeed, it worked better and more consistently without it.

Now, I use a few basic macros that wrap either "_beginthread" (for
win32) or "pthread_create" elsewhere and a little basic IPC and it all
pretty much Just Works, and is very portable.

As soon as you try and use any "fancy" threading functions, you bump up
hard against differences between platforms and get really tricky little
"features" appearing... 

Keep it simple... I know (from personal experience!) that when folk
start using threads, they see all these fancy functions and try and use
them. Don't, things work better without them!


SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to