问题
How can I go about emulating the pthread_kill() function with C++ threads? I asked a question about this earlier but there was no response to it. Will the thread::native_handle() function help here?
回答1:
So the answer to this question is to rely on platform dependent features and use std::thread::native_handle
with pthread_kill()
来源:https://stackoverflow.com/questions/33807645/emulate-pthread-kill-with-c-threads