> Okay, I'm 99% certain my problem is livelock stemming from 
> pthread's non-assurance of FCFS granting of a mutex.
> 
> I wrote a simple mutex class that wraps pthread mutexes, but 
> that assures fairness (FCFS).  Then I modified Fl_lock.cxx to 
> use my class rather than directly using pthread mutexes.
> 
> When I rebuilt FLTK and then my app, it worked like a charm.  
> The issue of app jitteriness entirely went away, and 
> everything was very smooth.
> 
> If you ignore whitespace and comments my code probably would 
> add about 100 lines to FLTK 1.1.x., and applies only to the 
> Linux section of Fl_lock.cxx  Have I got any prayer at all of 
> successfully getting this code, or some reworked version of 
> it, incorporated into FLTK 1.1.x?

File an STR anyway - but for 1.1.x I suspect it is unlikely... 1.3.x is
open to changes, so there's a fair chance that would be OK, if you make
your case strongly and can illustrate the benefit!

Does you app manifest the same behaviour with 1.1.9, because there were
some changes between 1.1.7 and 1.1.9?

And, FWIW, I think 1.1.9 and 1.3.x are essentially the same in this
area.



SELEX Sensors and Airborne Systems Limited
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