armadito-av icon indicating copy to clipboard operation
armadito-av copied to clipboard

client thread cancelation

Open fdechelle opened this issue 8 years ago • 0 comments

Unregistering a client must terminate its associated thread that is waiting for notifications coming from the daemon.

Unfortunately there is no cancel function in GThread API.

Suggested solution (and good one) is to add a pipe and do a select() or a poll() in the thread. If pipe becomes ready, then thread exists.

fdechelle avatar Jan 30 '17 15:01 fdechelle