{"categories":["UE4","C++","promise","future","thread","TPromise","TFuture","FRunnableThread","FRunnable"],"provider_url":"https://hatena.blog","image_url":null,"width":"100%","description":"C++ \u6a19\u6e96\u306e std::promise / std::future / std::thread C++er\u306b\u3068\u3063\u3066\u306f\u57fa\u790e\u7684\u306a\u304a\u3055\u3089\u3044\u3002 #include <iostream> #include <future> int main() { using namespace std; promise< int > p; auto f = p.get_future(); auto t = thread( [ =, p = move(p) ] () mutable { p.set_value( 123 ); } ); cout << f.get(); t.join(); } C++ \u6a19\u6e96\u3067\u306f lamb\u2026","published":"2017-06-10 12:27:20","type":"rich","author_url":"https://blog.hatena.ne.jp/USAGI-WRP/","version":"1.0","provider_name":"Hatena Blog","blog_title":"C++ \u3068\u304d\u3069\u304d \u3054\u306f\u3093\u3001\u308f\u308a\u3068\u3066\u3043\u30fc\u3076\u308c\u3044\u304f\u2606","title":"C++ \u6a19\u6e96\u306e promise / future / thread \u306b\u5bfe\u5fdc\u3059\u308b UE4 \u6a19\u6e96\u306e TPromise / TFuture / FRunnableThread \u306e\u4f7f\u3044\u65b9","url":"https://usagi.hatenablog.jp/entry/2017/06/10/122720","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2017%2F06%2F10%2F122720\" title=\"C++ \u6a19\u6e96\u306e promise / future / thread \u306b\u5bfe\u5fdc\u3059\u308b UE4 \u6a19\u6e96\u306e TPromise / TFuture / FRunnableThread \u306e\u4f7f\u3044\u65b9 - C++ \u3068\u304d\u3069\u304d \u3054\u306f\u3093\u3001\u308f\u308a\u3068\u3066\u3043\u30fc\u3076\u308c\u3044\u304f\u2606\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://usagi.hatenablog.jp/","author_name":"USAGI-WRP","height":"190"}