I'm developing a double-thread project, one runs
widgets(including window,
        TextBuffer, TextDisplay, ValueOutput, etc), while the other one
receives data
        from socket. Whenever the new data is received, the value of the
widget is 
        modified in the socket thread correspondingly.
         
        While running, I could see the value displayed changes when my
mouse keep on 
        moving in the widgets area, however, if I stop or move outside
the widgets area, 
        it stays still without changing anymore. It seems that the
widgets need some events
        to push itself to redraw, but I'm not sure.
         
        Is there anyone know how to solve this problem?


You do not say which version of fltk you are using. Assuming it is
fltk-1.1 then you will need to read the docs for Fl::lock(),
Fl::unklock() and Fl::awake().

Multithreading is discussed in Chapter 10 of the fltk-1.1.8 manual, with
some basic guidelines for making your app work correctly.

-- 
Ian

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-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to