CodeZHXS commented on PR #3039: URL: https://github.com/apache/brpc/pull/3039#issuecomment-3121452804
> Perhaps we can use pthread_sigqueue which has better compatibility. > > https://man7.org/linux/man-pages/man3/pthread_sigqueue.3.html > > > The pthread_sigqueue() function performs a similar task to > > [sigqueue(3)](https://man7.org/linux/man-pages/man3/sigqueue.3.html), but, rather than sending a signal to a process, it > > sends a signal to a thread in the same process as the calling thread. > Perhaps we can use pthread_sigqueue which has better compatibility. > > https://man7.org/linux/man-pages/man3/pthread_sigqueue.3.html > > > The pthread_sigqueue() function performs a similar task to > > [sigqueue(3)](https://man7.org/linux/man-pages/man3/sigqueue.3.html), but, rather than sending a signal to a process, it > > sends a signal to a thread in the same process as the calling thread. It's okay. So I need to change the type of `worker_tid` from `pid_t` to `pthread_t`, right? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org