Could you please elaborate how do you see it can be used? First as far as I can see it sends the signal to a process, we need specific thread.
Sorry. I confused it with `pthread_sigqueue(3)`.
Then, what is the difference for our case to current way of sending signal?
It enables us to attach a payload to `SOGUSR1`. Of course, if we can allocate a separate signal for ourselves, it seems better to use just that.
do you think introducing SIGUSR2 as "stop_thread" handle is a go?
FWIW, ARM64 uses SIGUSR2 for its own purpose.