Emulate pthread_kill with C ++ threads

How can I emulate the pthread_kill () function using C ++ threads? I asked a question about this before, but there was no answer. Will the thread :: native_handle () function work?

+4
source share
1 answer

So the answer to this question is to rely on platform-specific functions and use std::thread::native_handlewithpthread_kill()

+4
source

Source: https://habr.com/ru/post/1616572/


All Articles