{"action":"created","issue":{"url":"https://api.github.com/repos/matsumoto-r/ngx_mruby/issues/212","repository_url":"https://api.github.com/repos/matsumoto-r/ngx_mruby","labels_url":"https://api.github.com/repos/matsumoto-r/ngx_mruby/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/matsumoto-r/ngx_mruby/issues/212/comments","events_url":"https://api.github.com/repos/matsumoto-r/ngx_mruby/issues/212/events","html_url":"https://github.com/matsumoto-r/ngx_mruby/issues/212","id":177716654,"number":212,"title":"Proposal: mutex across worker processes","user":{"login":"yangyuqian","id":7478577,"avatar_url":"https://avatars.githubusercontent.com/u/7478577?v=3","gravatar_id":"","url":"https://api.github.com/users/yangyuqian","html_url":"https://github.com/yangyuqian","followers_url":"https://api.github.com/users/yangyuqian/followers","following_url":"https://api.github.com/users/yangyuqian/following{/other_user}","gists_url":"https://api.github.com/users/yangyuqian/gists{/gist_id}","starred_url":"https://api.github.com/users/yangyuqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangyuqian/subscriptions","organizations_url":"https://api.github.com/users/yangyuqian/orgs","repos_url":"https://api.github.com/users/yangyuqian/repos","events_url":"https://api.github.com/users/yangyuqian/events{/privacy}","received_events_url":"https://api.github.com/users/yangyuqian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-19T07:08:57Z","updated_at":"2016-09-20T03:34:01Z","closed_at":"2016-09-20T03:34:01Z","body":"Hi, @matsumoto-r \r\n\r\nRecently I need a mutex allowing multiple worker processes to modify shared memory(cached by https://github.com/matsumoto-r/mruby-localmemcache) synchronously.\r\n\r\ni.e.\r\n\r\n```\r\nm = GlobalMutex.new\r\nm.lock\r\n# do somthing here\r\nm.unlock\r\n```\r\n\r\nCurrently, the Mutex(https://github.com/matsumoto-r/mruby-mutex) has only single process support.\r\n\r\nIs it possible to add this global mutex support though?"},"comment":{"url":"https://api.github.com/repos/matsumoto-r/ngx_mruby/issues/comments/248192539","html_url":"https://github.com/matsumoto-r/ngx_mruby/issues/212#issuecomment-248192539","issue_url":"https://api.github.com/repos/matsumoto-r/ngx_mruby/issues/212","id":248192539,"user":{"login":"matsumoto-r","id":648437,"avatar_url":"https://avatars.githubusercontent.com/u/648437?v=3","gravatar_id":"","url":"https://api.github.com/users/matsumoto-r","html_url":"https://github.com/matsumoto-r","followers_url":"https://api.github.com/users/matsumoto-r/followers","following_url":"https://api.github.com/users/matsumoto-r/following{/other_user}","gists_url":"https://api.github.com/users/matsumoto-r/gists{/gist_id}","starred_url":"https://api.github.com/users/matsumoto-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsumoto-r/subscriptions","organizations_url":"https://api.github.com/users/matsumoto-r/orgs","repos_url":"https://api.github.com/users/matsumoto-r/repos","events_url":"https://api.github.com/users/matsumoto-r/events{/privacy}","received_events_url":"https://api.github.com/users/matsumoto-r/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T03:34:00Z","updated_at":"2016-09-20T03:34:00Z","body":"mruby-mutex already supported global mutex. \r\n\r\nrefs: https://github.com/matsumoto-r/mruby-mutex/blob/master/src/mrb_mutex.c#L45-L94 https://github.com/matsumoto-r/http-dos-detector/blob/master/dos_detector/dos_detector_init.rb#L1\r\n\r\n"}}
{"actor":{"display_login":"matsumoto-r"}}