[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua callback in another thread
- From: Laurent Faillie <l_faillie@...>
- Date: Sat, 23 Apr 2016 17:18:59 +0200
Le 22/04/2016 08:52, Daurnimator a écrit :
> Infact, sending a packet to a socket *is* actually the best option for
> this sort of thing. On linux, you have a special fast kernel provided
> file descriptor type 'eventfd' just for this purpose. In general, you
> can fall back to using a pipe() or socketpair() and writing a single
> byte so that the other end polls readable.
My issue is not to signalize anything b/w thread, it's already done
using eventfb and socket signaling :)
My issue is to pass a function reference defined in the main thread to
the newly created one w/o blocking the main one.