• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

std::promise

C++11 중 std::promise 소개

promise 에 이상 을 설정 한 후 promise 의 공유 상태 가 플래그 로 바 뀌 었 습 니 다.예 를 들 어 다음 과 같 습 니 다.스 레 드 1 은 터미널 에서 정 수 를 받 고 스 레 드 2 는 이 정 수 를 인쇄 합 니 다.스 레 드 1 이 비정 수 를 받 으 면 promise 에 이상(failbit)을 설정 합 니 다.스 레 드 2 는 std:future:get 에서 이 이상...

C++11std::promise

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more