|
From: Alexandre F. <ale...@gm...> - 2016-11-28 01:58:05
|
On Sun, Nov 27, 2016 at 10:30 PM, Lucio Andrés Illanes Albornoz <l.i...@gm...> wrote: > On 27.11.2016 22:17, Christian Gollwitzer wrote: >> I am not sure, have not reviewed your code. Interthread communication >> works by means of Tcl_ThreadQueueEvent() and Tcl_ThreadAlert(). How does >> it work to wake up a different thread in your implementation? > I've checked the code you've mentioned. This will indeed not work without > the notifier thread as we can hardly block on both a condition variable > (so to speak) and epoll_wait/kevent. How does pthread_kill(3) sound? Yep, that's the obvious way to simple, per-thread-select without that horrible beast of central notifier thread. But years ago when floating the idea round, the consensus was that pthread_kill was not ready for prime time (varied bug on various OSes). Maybe it's ripe now ? -Alex |