Ryan Lovelett wrote:
> Is there a fd type of function that will watch a local array for changes and 
> then trigger some event when the value in the array changes?
> 
> Basically I have a similar situation only I cannot access the hardware 
> directly.  What is happening is that the pixel buffer is being written into a 
> mapped memory location (shared by the "server" application and then the GUI 
> application so they can communicate with one another).
> 
> I already have a thread going that is handling the polling of the shared 
> memory and writing it to a local property pixbuf.  The problem is that even 
> though the thread calls for the redraw method of the Fl_Box on every cycle of 
> the thread.  It only redraws if the mouse is being moved which is exceedingly 
> odd.
> 
> If you need to see some code to see clearer what I'm talking about please.  
> Let me know.

Seems like you need to use fl::wake() together with fl::lock() / 
fl::unlock() from your thread(s). However, I don't have experience with 
this - others may give you more help.

Code - or at least more info about your thread handling, would surely be 
helpful.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to