Emulate pthread_kill with C++ threads

点点圈 提交于 2019-12-10 13:45:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!