> Shouldn't be hard. In Windows you can use 
> EnterCriticalSection()/LeaveCriticalSection()
> to manage the mutex lock.

And in practice, if you have one writer thread and one reader thread,
you can probably just use volatile ints to signal between them, rather
than using a mutex - this has the advantages of being cheaper and also
more portable (since it doesn't require any OS specific coding.)
(Note: this does slightly assume your underlying hardware will update an
int value atomically, though that isn't always necessary and most modern
h/w will anyway...)


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