Re: Lua callback in another thread
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua callback in another thread
- From: Laurent Faillie <l_faillie@...>
- Date: 2016年4月23日 17:18:59 +0200
Hello,
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.