my test program now looks like this:

main thread:
    create thread from start_cb()
    call output()

    void output()
    {
        for (i=0; i<30000; i++)
{
             while (sharedArray[i] != -1) sleep(10)
             display data
        }
    }


worker thread:
    do calculation and save data to a shared array



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

Reply via email to