On 12.11.2010, at 05:22, <[email protected]> wrote:
> void * NeedToMoveMouse( void *p) {
> while (1==1)
>
> {
>
> clockValueOutput->value(clockValueOutput->value() +1);
>
> Sleep(1000);
>
>
>
> }
> }
Yes, that is to be expected. You must add the following commands around the
code that modifies FLTK widgets:
void myThread()
{
while (1) {
Fl::lock();
clockValueOutput->value(clockValueOutput->value() +1);
Fl::unlock();
Fl::awake();
Sleep(1000);
}
}
and you must call
Fl::lock() once before you launch your threads. Calling Fl::run() will then
unlock them again.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk