{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/issues/350","labels_url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/issues/350/comments","events_url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/issues/350/events","html_url":"https://github.com/ruby-concurrency/concurrent-ruby/issues/350","id":88339188,"number":350,"title":"MutexAtomic#compare_and_set broken contract","user":{"login":"pitr-ch","id":204460,"avatar_url":"https://avatars.githubusercontent.com/u/204460?v=3","gravatar_id":"","url":"https://api.github.com/users/pitr-ch","html_url":"https://github.com/pitr-ch","followers_url":"https://api.github.com/users/pitr-ch/followers","following_url":"https://api.github.com/users/pitr-ch/following{/other_user}","gists_url":"https://api.github.com/users/pitr-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/pitr-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitr-ch/subscriptions","organizations_url":"https://api.github.com/users/pitr-ch/orgs","repos_url":"https://api.github.com/users/pitr-ch/repos","events_url":"https://api.github.com/users/pitr-ch/events{/privacy}","received_events_url":"https://api.github.com/users/pitr-ch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"jdantonio","id":173910,"avatar_url":"https://avatars.githubusercontent.com/u/173910?v=3","gravatar_id":"","url":"https://api.github.com/users/jdantonio","html_url":"https://github.com/jdantonio","followers_url":"https://api.github.com/users/jdantonio/followers","following_url":"https://api.github.com/users/jdantonio/following{/other_user}","gists_url":"https://api.github.com/users/jdantonio/gists{/gist_id}","starred_url":"https://api.github.com/users/jdantonio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdantonio/subscriptions","organizations_url":"https://api.github.com/users/jdantonio/orgs","repos_url":"https://api.github.com/users/jdantonio/repos","events_url":"https://api.github.com/users/jdantonio/events{/privacy}","received_events_url":"https://api.github.com/users/jdantonio/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/milestones/10","html_url":"https://github.com/ruby-concurrency/concurrent-ruby/milestones/0.9.0%20Release","labels_url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/milestones/10/labels","id":935264,"number":10,"title":"0.9.0 Release","description":"See #257 ","creator":{"login":"jdantonio","id":173910,"avatar_url":"https://avatars.githubusercontent.com/u/173910?v=3","gravatar_id":"","url":"https://api.github.com/users/jdantonio","html_url":"https://github.com/jdantonio","followers_url":"https://api.github.com/users/jdantonio/followers","following_url":"https://api.github.com/users/jdantonio/following{/other_user}","gists_url":"https://api.github.com/users/jdantonio/gists{/gist_id}","starred_url":"https://api.github.com/users/jdantonio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdantonio/subscriptions","organizations_url":"https://api.github.com/users/jdantonio/orgs","repos_url":"https://api.github.com/users/jdantonio/repos","events_url":"https://api.github.com/users/jdantonio/events{/privacy}","received_events_url":"https://api.github.com/users/jdantonio/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":69,"state":"open","created_at":"2015-01-14T16:04:47Z","updated_at":"2015-06-19T12:04:31Z","due_on":"2015-06-21T04:00:00Z","closed_at":null},"comments":6,"created_at":"2015-06-15T06:55:35Z","updated_at":"2015-06-19T12:04:31Z","closed_at":"2015-06-19T12:04:31Z","body":"It may also return false if another thread is just reading the value, there should be lock not just try_lock:\r\nhttps://github.com/ruby-concurrency/concurrent-ruby/blob/master/lib/concurrent/atomic_reference/mutex_atomic.rb#L45"},"comment":{"url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/issues/comments/113491394","html_url":"https://github.com/ruby-concurrency/concurrent-ruby/issues/350#issuecomment-113491394","issue_url":"https://api.github.com/repos/ruby-concurrency/concurrent-ruby/issues/350","id":113491394,"user":{"login":"jdantonio","id":173910,"avatar_url":"https://avatars.githubusercontent.com/u/173910?v=3","gravatar_id":"","url":"https://api.github.com/users/jdantonio","html_url":"https://github.com/jdantonio","followers_url":"https://api.github.com/users/jdantonio/followers","following_url":"https://api.github.com/users/jdantonio/following{/other_user}","gists_url":"https://api.github.com/users/jdantonio/gists{/gist_id}","starred_url":"https://api.github.com/users/jdantonio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdantonio/subscriptions","organizations_url":"https://api.github.com/users/jdantonio/orgs","repos_url":"https://api.github.com/users/jdantonio/repos","events_url":"https://api.github.com/users/jdantonio/events{/privacy}","received_events_url":"https://api.github.com/users/jdantonio/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T12:04:30Z","updated_at":"2015-06-19T12:04:30Z","body":"@iNecas Thanks for taking the time to help us debug this. I'm going to close the issue for now. We can open it again if the bug resurfaces."}}