{"width":"100%","categories":["Ruby"],"published":"2008-09-08 18:56:18","author_name":"unageanu","height":"190","title":" Thread\u3092\u4f7f\u3063\u305fGenerator\u3092\u4f5c\u3063\u3066\u307f\u305f","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20080908%2F1220867778\" title=\" Thread\u3092\u4f7f\u3063\u305fGenerator\u3092\u4f5c\u3063\u3066\u307f\u305f - \u3046\u306a\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","type":"rich","description":"\u6271\u3046\u30c7\u30fc\u30bf\u6570\u304c\u591a\u3044\u3068\u82e5\u5e72\u6027\u80fd\u304c\u6c17\u306b\u306a\u308b\u611f\u3058\u306eGenerator\u3067\u3059\u304c\u3001callcc\u3058\u3083\u306a\u304f\u3066Thread\u3092\u4f7f\u3048\u3070\u3061\u3087\u3063\u3068\u306f\u65e9\u304f\u306a\u3063\u305f\u308a\u3059\u308b\u3093\u3058\u3083\u306d?\u3068\u601d\u3063\u3066\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002next?\u3068next\u3060\u3051\u3001Queue\u3092\u4f7f\u3063\u3066\u3055\u304f\u3063\u3068\u5b9f\u88c5\u3002 require 'thread' # \u30b9\u30ec\u30c3\u30c9\u3092\u4f7f\u3063\u305fGenerator class ThreadUseGenerator def initialize( enum, buff_size=nil ) @alive = true @alive_mutex = Mutex.new @q = buff_size ? SizedQueue.new( buff_size ) \u2026","image_url":null,"version":"1.0","blog_url":"https://unageanu.hatenablog.com/","url":"https://unageanu.hatenablog.com/entry/20080908/1220867778","author_url":"https://blog.hatena.ne.jp/unageanu/","blog_title":"\u3046\u306a\u306e\u65e5\u8a18"}