{"published":"2015-07-01 00:45:28","height":"190","provider_url":"https://hatena.blog","type":"rich","blog_url":"https://pebble8888.hatenablog.com/","url":"https://pebble8888.hatenablog.com/entry/2015/07/01/004528","blog_title":"Pebble Coding","description":"#include <thread> #include <mutex> #include <queue> #include <unistd.h> // usleep using namespace std; mutex print_mutex; // printf()\u547c\u3073\u51fa\u3057\u6392\u4ed6\u7528 mutex queue_mutex; // v_queue\u6392\u4ed6\u30a2\u30af\u30bb\u30b9\u7528 queue<int> v_queue; // \u30c7\u30fc\u30bf\u30ad\u30e5\u30fc condition_variable ready_cond; // \u6761\u4ef6\u5909\u6570 void worker(void) { while (true) { int data; { // uni\u2026","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/pebble8888/","width":"100%","title":"C++11\u3067\u306econdition_variable\u3092\u4f7f\u3063\u305f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5236\u5fa1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2015%2F07%2F01%2F004528\" title=\"C++11\u3067\u306econdition_variable\u3092\u4f7f\u3063\u305f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5236\u5fa1 - Pebble Coding\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"http://ecx.images-amazon.com/images/I/51HI8SrUrML.jpg","categories":["C++11"],"author_name":"pebble8888","version":"1.0"}