Re: Thread problem in Windows



Armin Burgmeier wrote:
>>         Glib::Thread *const opcWriterThread = Glib::Thread::create(
>>              sigc::mem_fun(this, &MyClass::ThreadTest), true);
>>          opcWriterThread->join();
>>         writing.run();
>
> Joining a thread means waiting for it to finish. So you are waiting
> for the thread here before running the dialog, which explains the
> behaviour you are experiencing.
>
> Try joining it afterwards, or make the thread non-joinable.
>
> Armin
>

Oh, ok, I thought that the join was to launch/start the thread.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]