gpt4 book ai didi

c++ - 终止 boost 线程 (C++)

转载 作者:可可西里 更新时间:2023-11-01 11:20:31 25 4
gpt4 key购买 nike

我有一个问题,我需要终止 boost 线程。并从主线程执行此操作。使用标志是不合适的。请帮我。我需要 Windows 解决方案。

最佳答案

请阅读 the following question 的答案.尽管如此,如果您必须在 Windows 上终止线程,您可以这样做:TerminateThread(yourThread.native_handle());

关于c++ - 终止 boost 线程 (C++),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12893851/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com