c++ - Interrupt an arbitrary wait operation -


in boost.thread, have boost::thread::interrupt. however, usage limited. in particular, applies wait operations listed here. so, example, common mutex::lock operation cannot interrupted using method. boost support no full-range interruption capabilities, , there no way interrupt mutex::lock operation? know that, in windows api, wait operation can interrupted using alertable wait functions.

you correct boost::thread::interrupt limited, , in fact not promoted std::thread in c++11 @ all. recommendation use condition variable.


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -