Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,我需要终止 boost 线程。并从主线程执行此操作。使用标志是不合适的。请帮我。我需要windows解决方案。
请阅读以下问题的答案。如果您仍然必须在 Windows 上终止线程,您可以这样做:TerminateThread(yourThread.native_handle());
TerminateThread(yourThread.native_handle());