简体   繁体   English

用C ++线程模拟pthread_kill

[英]Emulate pthread_kill with C++ threads

How can I go about emulating the pthread_kill() function with C++ threads? 如何使用C ++线程模拟pthread_kill()函数? I asked a question about this earlier but there was no response to it. 我早些时候问过一个问题,但是没有任何回应。 Will the thread::native_handle() function help here? 请问thread :: native_handle()函数在这里有帮助吗?

因此,此问题的答案是依赖于平台相关的功能,并通过pthread_kill()使用std::thread::native_handle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM