The right way to "tap" into the main
loop is to add a file descriptor on which the main loop can poll.
In you case it sounds like this is exactly what you could do with the TTY's fd. If you really need to communicate between 2 threads, just write onto one end a pipe and let the mainloop stuff poll onto the receiving end of that pipe. - Lionel On 10/08/14 23:20, Elias Bakken wrote:
|