From: Vasilis Vlachoudis on
Dear all,

I have a tk extension written in C++. The main calculation is performed
on a separate thread. How can I send a virtual event when the thread is
terminated?

Thank you
Vasilis
From: David Gravereaux on
Vasilis Vlachoudis wrote:
> Dear all,
>
> I have a tk extension written in C++. The main calculation is performed
> on a separate thread. How can I send a virtual event when the thread is
> terminated?
>
> Thank you
> Vasilis

Tcl_ThreadQueueEvent();

http://www.tcl.tk/man/tcl8.4/TclLib/Notifier.htm

--


From: Harald Oehlmann on
On 11 Apr., 22:47, David Gravereaux <davyg...(a)pobox.com> wrote:
> Vasilis Vlachoudis wrote:
> > Dear all,
>
> > I have a tk extension written in C++. The main calculation is performed
> > on a separate thread. How can I send a virtual event when the thread is
> > terminated?
> Tcl_ThreadQueueEvent();
>
> http://www.tcl.tk/man/tcl8.4/TclLib/Notifier.htm

Sample to feed-back to interpreter:
http://wiki.tcl.tk/17195