From heinrichmartin@21:1/5 to All on Sun Oct 29 05:36:32 2023
Hi Tclers,
I want to provide a Tcl wrapper to a C API. That should be straight forward, except for the callback from another thread. Can anyone point me to how to make the callback available as a Tcl event, e.g. write a variable in a thread safe way to trigger
vwait?
If possible, I want to avoid Tcl threads and busy waiting.
TIA
Martin
From Christian Werner@21:1/5 to All on Sun Oct 29 07:42:47 2023
Martin,
there are some C coded extensions in the www.androwish.org repository which use Tcl_ThreadQueueEvent() for triggering events in a Tcl thread from another thread, see e.g.
From heinrichmartin@21:1/5 to Christian Werner on Mon Oct 30 00:19:28 2023
On Sunday, October 29, 2023 at 3:42:50 PM UTC+1, Christian Werner wrote:
Martin,
there are some C coded extensions in the www.androwish.org repository which use Tcl_ThreadQueueEvent() for triggering events in a Tcl thread from another thread, see e.g.