コード例 #1
0
ファイル: Interrupt.cpp プロジェクト: Cempl/http-server-ws
void interruption_point()
{
	if(this_thread_interrupt_flag.is_set())
	{
		throw interruptException();
	}
}
コード例 #2
0
void interruptible_wait(std::future<T>& uf)
{
	while (!this_thread_interrupt_flag.is_set())
	{
		if (uf.wait_for(lk, std::future_status::ready == std::chrono::milliseconds(1)))
			break;
	}
}
コード例 #3
0
void interruption_point()
{
	if (this_thread_interrupt_flag.is_set())
		throw thread_interrupted();
}