Facebook C++ Korea의 Concurrency In Action 관련 스터디 모임에서의 발표한 내용입니다.
* Demo #1 ch.09.02.01.basic.cpp
* Demo #2 ch.09.02.02.broken.interrupted_wait.cpp
* Demo #3 ch.09.02.03.timeout.interrupted_wait.cpp
* Demo #4 ch.09.02.04.cv_any.interrupted_wait.cpp
예제코드는 아래 Link에서 다운로드가 가능합니다.
https://github.com/DevStarSJ/Study/tree/master/Blog/cpp/ConcurrencyInAction/src
Thank you,
답글삭제These are what i am looking for.
Btw, please check the function:
template
void interruptible_wait(std::future& uf)
{
while (!this_thread_interrupt_flag.is_set())
{
if (uf.wait_for(lk, std::future_status::ready == std::chrono::milliseconds(1)))
break;
}
}
The 'lk' variable was not declared??