{"action":"created","comment":{"url":"https://api.github.com/repos/carllerche/mio/pulls/comments/64948651","id":64948651,"diff_hunk":"@@ -0,0 +1,89 @@\n+use std::cell::UnsafeCell;\n+use std::fmt;\n+use std::sync::atomic::{AtomicUsize, Ordering};\n+\n+pub struct Lazy<T> {\n+    val: UnsafeCell<Option<T>>,\n+}\n+\n+pub struct AtomicLazy<T> {\n+    val: UnsafeCell<Option<T>>,\n+    state: AtomicUsize,\n+}\n+\n+impl<T> Lazy<T> {\n+    pub fn new() -> Lazy<T> {\n+        Lazy { val: UnsafeCell::new(None) }\n+    }\n+\n+    pub fn is_some(&self) -> bool {\n+        self.as_ref().is_some()\n+    }","path":"src/lazy.rs","position":21,"original_position":21,"commit_id":"817a084a74f058b254590dba8beabdda4d48cdc9","original_commit_id":"817a084a74f058b254590dba8beabdda4d48cdc9","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"body":"er actually, this `Lazy` type seems like it's not used?","created_at":"2016-05-27T18:31:19Z","updated_at":"2016-05-27T18:31:19Z","html_url":"https://github.com/carllerche/mio/pull/371#discussion_r64948651","pull_request_url":"https://api.github.com/repos/carllerche/mio/pulls/371","_links":{"self":{"href":"https://api.github.com/repos/carllerche/mio/pulls/comments/64948651"},"html":{"href":"https://github.com/carllerche/mio/pull/371#discussion_r64948651"},"pull_request":{"href":"https://api.github.com/repos/carllerche/mio/pulls/371"}}},"pull_request":{"url":"https://api.github.com/repos/carllerche/mio/pulls/371","id":61601067,"html_url":"https://github.com/carllerche/mio/pull/371","diff_url":"https://github.com/carllerche/mio/pull/371.diff","patch_url":"https://github.com/carllerche/mio/pull/371.patch","issue_url":"https://api.github.com/repos/carllerche/mio/issues/371","number":371,"state":"open","locked":false,"title":"WIP - Custom readiness queue","user":{"login":"carllerche","id":6180,"avatar_url":"https://avatars.githubusercontent.com/u/6180?v=3","gravatar_id":"","url":"https://api.github.com/users/carllerche","html_url":"https://github.com/carllerche","followers_url":"https://api.github.com/users/carllerche/followers","following_url":"https://api.github.com/users/carllerche/following{/other_user}","gists_url":"https://api.github.com/users/carllerche/gists{/gist_id}","starred_url":"https://api.github.com/users/carllerche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carllerche/subscriptions","organizations_url":"https://api.github.com/users/carllerche/orgs","repos_url":"https://api.github.com/users/carllerche/repos","events_url":"https://api.github.com/users/carllerche/events{/privacy}","received_events_url":"https://api.github.com/users/carllerche/received_events","type":"User","site_admin":false},"body":"WIP, not ready for merging. This PR will be the first step towards #360","created_at":"2016-03-03T18:12:36Z","updated_at":"2016-05-27T18:31:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ec535969e357a75dbb30ea7d981939471d685e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/carllerche/mio/pulls/371/commits","review_comments_url":"https://api.github.com/repos/carllerche/mio/pulls/371/comments","review_comment_url":"https://api.github.com/repos/carllerche/mio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carllerche/mio/issues/371/comments","statuses_url":"https://api.github.com/repos/carllerche/mio/statuses/817a084a74f058b254590dba8beabdda4d48cdc9","head":{"label":"carllerche:custom-readiness-queue","ref":"custom-readiness-queue","sha":"817a084a74f058b254590dba8beabdda4d48cdc9","user":{"login":"carllerche","id":6180,"avatar_url":"https://avatars.githubusercontent.com/u/6180?v=3","gravatar_id":"","url":"https://api.github.com/users/carllerche","html_url":"https://github.com/carllerche","followers_url":"https://api.github.com/users/carllerche/followers","following_url":"https://api.github.com/users/carllerche/following{/other_user}","gists_url":"https://api.github.com/users/carllerche/gists{/gist_id}","starred_url":"https://api.github.com/users/carllerche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carllerche/subscriptions","organizations_url":"https://api.github.com/users/carllerche/orgs","repos_url":"https://api.github.com/users/carllerche/repos","events_url":"https://api.github.com/users/carllerche/events{/privacy}","received_events_url":"https://api.github.com/users/carllerche/received_events","type":"User","site_admin":false},"repo":{"id":23138984,"name":"mio","full_name":"carllerche/mio","owner":{"login":"carllerche","id":6180,"avatar_url":"https://avatars.githubusercontent.com/u/6180?v=3","gravatar_id":"","url":"https://api.github.com/users/carllerche","html_url":"https://github.com/carllerche","followers_url":"https://api.github.com/users/carllerche/followers","following_url":"https://api.github.com/users/carllerche/following{/other_user}","gists_url":"https://api.github.com/users/carllerche/gists{/gist_id}","starred_url":"https://api.github.com/users/carllerche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carllerche/subscriptions","organizations_url":"https://api.github.com/users/carllerche/orgs","repos_url":"https://api.github.com/users/carllerche/repos","events_url":"https://api.github.com/users/carllerche/events{/privacy}","received_events_url":"https://api.github.com/users/carllerche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carllerche/mio","description":"Metal IO library for Rust","fork":false,"url":"https://api.github.com/repos/carllerche/mio","forks_url":"https://api.github.com/repos/carllerche/mio/forks","keys_url":"https://api.github.com/repos/carllerche/mio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carllerche/mio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carllerche/mio/teams","hooks_url":"https://api.github.com/repos/carllerche/mio/hooks","issue_events_url":"https://api.github.com/repos/carllerche/mio/issues/events{/number}","events_url":"https://api.github.com/repos/carllerche/mio/events","assignees_url":"https://api.github.com/repos/carllerche/mio/assignees{/user}","branches_url":"https://api.github.com/repos/carllerche/mio/branches{/branch}","tags_url":"https://api.github.com/repos/carllerche/mio/tags","blobs_url":"https://api.github.com/repos/carllerche/mio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carllerche/mio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carllerche/mio/git/refs{/sha}","trees_url":"https://api.github.com/repos/carllerche/mio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carllerche/mio/statuses/{sha}","languages_url":"https://api.github.com/repos/carllerche/mio/languages","stargazers_url":"https://api.github.com/repos/carllerche/mio/stargazers","contributors_url":"https://api.github.com/repos/carllerche/mio/contributors","subscribers_url":"https://api.github.com/repos/carllerche/mio/subscribers","subscription_url":"https://api.github.com/repos/carllerche/mio/subscription","commits_url":"https://api.github.com/repos/carllerche/mio/commits{/sha}","git_commits_url":"https://api.github.com/repos/carllerche/mio/git/commits{/sha}","comments_url":"https://api.github.com/repos/carllerche/mio/comments{/number}","issue_comment_url":"https://api.github.com/repos/carllerche/mio/issues/comments{/number}","contents_url":"https://api.github.com/repos/carllerche/mio/contents/{+path}","compare_url":"https://api.github.com/repos/carllerche/mio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carllerche/mio/merges","archive_url":"https://api.github.com/repos/carllerche/mio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carllerche/mio/downloads","issues_url":"https://api.github.com/repos/carllerche/mio/issues{/number}","pulls_url":"https://api.github.com/repos/carllerche/mio/pulls{/number}","milestones_url":"https://api.github.com/repos/carllerche/mio/milestones{/number}","notifications_url":"https://api.github.com/repos/carllerche/mio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carllerche/mio/labels{/name}","releases_url":"https://api.github.com/repos/carllerche/mio/releases{/id}","deployments_url":"https://api.github.com/repos/carllerche/mio/deployments","created_at":"2014-08-20T06:52:12Z","updated_at":"2016-05-27T17:15:52Z","pushed_at":"2016-05-27T17:06:31Z","git_url":"git://github.com/carllerche/mio.git","ssh_url":"git@github.com:carllerche/mio.git","clone_url":"https://github.com/carllerche/mio.git","svn_url":"https://github.com/carllerche/mio","homepage":"","size":1284,"stargazers_count":1360,"watchers_count":1360,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":160,"mirror_url":null,"open_issues_count":56,"forks":160,"open_issues":56,"watchers":1360,"default_branch":"master"}},"base":{"label":"carllerche:master","ref":"master","sha":"f4aa49a9d2c4507fb33a4533d5238e0365f67c99","user":{"login":"carllerche","id":6180,"avatar_url":"https://avatars.githubusercontent.com/u/6180?v=3","gravatar_id":"","url":"https://api.github.com/users/carllerche","html_url":"https://github.com/carllerche","followers_url":"https://api.github.com/users/carllerche/followers","following_url":"https://api.github.com/users/carllerche/following{/other_user}","gists_url":"https://api.github.com/users/carllerche/gists{/gist_id}","starred_url":"https://api.github.com/users/carllerche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carllerche/subscriptions","organizations_url":"https://api.github.com/users/carllerche/orgs","repos_url":"https://api.github.com/users/carllerche/repos","events_url":"https://api.github.com/users/carllerche/events{/privacy}","received_events_url":"https://api.github.com/users/carllerche/received_events","type":"User","site_admin":false},"repo":{"id":23138984,"name":"mio","full_name":"carllerche/mio","owner":{"login":"carllerche","id":6180,"avatar_url":"https://avatars.githubusercontent.com/u/6180?v=3","gravatar_id":"","url":"https://api.github.com/users/carllerche","html_url":"https://github.com/carllerche","followers_url":"https://api.github.com/users/carllerche/followers","following_url":"https://api.github.com/users/carllerche/following{/other_user}","gists_url":"https://api.github.com/users/carllerche/gists{/gist_id}","starred_url":"https://api.github.com/users/carllerche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carllerche/subscriptions","organizations_url":"https://api.github.com/users/carllerche/orgs","repos_url":"https://api.github.com/users/carllerche/repos","events_url":"https://api.github.com/users/carllerche/events{/privacy}","received_events_url":"https://api.github.com/users/carllerche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carllerche/mio","description":"Metal IO library for Rust","fork":false,"url":"https://api.github.com/repos/carllerche/mio","forks_url":"https://api.github.com/repos/carllerche/mio/forks","keys_url":"https://api.github.com/repos/carllerche/mio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carllerche/mio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carllerche/mio/teams","hooks_url":"https://api.github.com/repos/carllerche/mio/hooks","issue_events_url":"https://api.github.com/repos/carllerche/mio/issues/events{/number}","events_url":"https://api.github.com/repos/carllerche/mio/events","assignees_url":"https://api.github.com/repos/carllerche/mio/assignees{/user}","branches_url":"https://api.github.com/repos/carllerche/mio/branches{/branch}","tags_url":"https://api.github.com/repos/carllerche/mio/tags","blobs_url":"https://api.github.com/repos/carllerche/mio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carllerche/mio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carllerche/mio/git/refs{/sha}","trees_url":"https://api.github.com/repos/carllerche/mio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carllerche/mio/statuses/{sha}","languages_url":"https://api.github.com/repos/carllerche/mio/languages","stargazers_url":"https://api.github.com/repos/carllerche/mio/stargazers","contributors_url":"https://api.github.com/repos/carllerche/mio/contributors","subscribers_url":"https://api.github.com/repos/carllerche/mio/subscribers","subscription_url":"https://api.github.com/repos/carllerche/mio/subscription","commits_url":"https://api.github.com/repos/carllerche/mio/commits{/sha}","git_commits_url":"https://api.github.com/repos/carllerche/mio/git/commits{/sha}","comments_url":"https://api.github.com/repos/carllerche/mio/comments{/number}","issue_comment_url":"https://api.github.com/repos/carllerche/mio/issues/comments{/number}","contents_url":"https://api.github.com/repos/carllerche/mio/contents/{+path}","compare_url":"https://api.github.com/repos/carllerche/mio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carllerche/mio/merges","archive_url":"https://api.github.com/repos/carllerche/mio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carllerche/mio/downloads","issues_url":"https://api.github.com/repos/carllerche/mio/issues{/number}","pulls_url":"https://api.github.com/repos/carllerche/mio/pulls{/number}","milestones_url":"https://api.github.com/repos/carllerche/mio/milestones{/number}","notifications_url":"https://api.github.com/repos/carllerche/mio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carllerche/mio/labels{/name}","releases_url":"https://api.github.com/repos/carllerche/mio/releases{/id}","deployments_url":"https://api.github.com/repos/carllerche/mio/deployments","created_at":"2014-08-20T06:52:12Z","updated_at":"2016-05-27T17:15:52Z","pushed_at":"2016-05-27T17:06:31Z","git_url":"git://github.com/carllerche/mio.git","ssh_url":"git@github.com:carllerche/mio.git","clone_url":"https://github.com/carllerche/mio.git","svn_url":"https://github.com/carllerche/mio","homepage":"","size":1284,"stargazers_count":1360,"watchers_count":1360,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":160,"mirror_url":null,"open_issues_count":56,"forks":160,"open_issues":56,"watchers":1360,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carllerche/mio/pulls/371"},"html":{"href":"https://github.com/carllerche/mio/pull/371"},"issue":{"href":"https://api.github.com/repos/carllerche/mio/issues/371"},"comments":{"href":"https://api.github.com/repos/carllerche/mio/issues/371/comments"},"review_comments":{"href":"https://api.github.com/repos/carllerche/mio/pulls/371/comments"},"review_comment":{"href":"https://api.github.com/repos/carllerche/mio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carllerche/mio/pulls/371/commits"},"statuses":{"href":"https://api.github.com/repos/carllerche/mio/statuses/817a084a74f058b254590dba8beabdda4d48cdc9"}}}}
{"actor":{"display_login":"alexcrichton"}}