{"action":"created","comment":{"url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/comments/279044689","pull_request_review_id":231281881,"id":279044689,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3OTA0NDY4OQ==","diff_hunk":"@@ -42,20 +42,32 @@ TEST_CASE(\"ThreadsafeQueue multithreaded ping-pong\") {\n \n     auto pinger = [](void *_qs) -> void * {\n         ThreadsafeQueue *qs = static_cast<ThreadsafeQueue *>(_qs);\n-        // TODO\n-        static_cast<void>(qs);  // Используем переменную как-нибудь.\n-        static_cast<void>(PING_PONGS);  // Используем переменную как-нибудь.\n+        int var = 0;\n+        for (int i = 0; i < PING_PONGS; i++) {\n+            int old_var = var;\n+            threadsafe_queue_push(&qs[0], &var);\n+            int *ans = (int *)threadsafe_queue_wait_and_pop(&qs[1]);\n+            CHECK(&var == ans);\n+            CHECK(var == old_var + 1);\n+        }\n         return nullptr;\n     };\n \n-    // TODO\n+    auto ponger = [](void *_qs) -> void * {\n+        ThreadsafeQueue *qs = static_cast<ThreadsafeQueue *>(_qs);\n+        for (int i = 0; i < PING_PONGS; i++) {\n+            int *ans = (int *)threadsafe_queue_wait_and_pop(&qs[0]);","path":"task09/src/tsqueue_test.cpp","position":22,"original_position":22,"commit_id":"ca30c805a45a07d05cf3ca1c50b2fc79860f6c47","original_commit_id":"ca30c805a45a07d05cf3ca1c50b2fc79860f6c47","user":{"login":"yeputons","id":1297325,"node_id":"MDQ6VXNlcjEyOTczMjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1297325?v=4","gravatar_id":"","url":"https://api.github.com/users/yeputons","html_url":"https://github.com/yeputons","followers_url":"https://api.github.com/users/yeputons/followers","following_url":"https://api.github.com/users/yeputons/following{/other_user}","gists_url":"https://api.github.com/users/yeputons/gists{/gist_id}","starred_url":"https://api.github.com/users/yeputons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeputons/subscriptions","organizations_url":"https://api.github.com/users/yeputons/orgs","repos_url":"https://api.github.com/users/yeputons/repos","events_url":"https://api.github.com/users/yeputons/events{/privacy}","received_events_url":"https://api.github.com/users/yeputons/received_events","type":"User","site_admin":false},"body":"Это не `ans`, пингер отправляет другое значение","created_at":"2019-04-26T17:48:20Z","updated_at":"2019-04-26T17:49:04Z","html_url":"https://github.com/yeputons/spring-2019-paradigms-tasks/pull/148#discussion_r279044689","pull_request_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/comments/279044689"},"html":{"href":"https://github.com/yeputons/spring-2019-paradigms-tasks/pull/148#discussion_r279044689"},"pull_request":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148","id":273848610,"node_id":"MDExOlB1bGxSZXF1ZXN0MjczODQ4NjEw","html_url":"https://github.com/yeputons/spring-2019-paradigms-tasks/pull/148","diff_url":"https://github.com/yeputons/spring-2019-paradigms-tasks/pull/148.diff","patch_url":"https://github.com/yeputons/spring-2019-paradigms-tasks/pull/148.patch","issue_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues/148","number":148,"state":"open","locked":false,"title":"Task09, Group09, Горбачев Егор","user":{"login":"Peltorator","id":25479468,"node_id":"MDQ6VXNlcjI1NDc5NDY4","avatar_url":"https://avatars2.githubusercontent.com/u/25479468?v=4","gravatar_id":"","url":"https://api.github.com/users/Peltorator","html_url":"https://github.com/Peltorator","followers_url":"https://api.github.com/users/Peltorator/followers","following_url":"https://api.github.com/users/Peltorator/following{/other_user}","gists_url":"https://api.github.com/users/Peltorator/gists{/gist_id}","starred_url":"https://api.github.com/users/Peltorator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peltorator/subscriptions","organizations_url":"https://api.github.com/users/Peltorator/orgs","repos_url":"https://api.github.com/users/Peltorator/repos","events_url":"https://api.github.com/users/Peltorator/events{/privacy}","received_events_url":"https://api.github.com/users/Peltorator/received_events","type":"User","site_admin":false},"body":"@yeputons,  исправлено","created_at":"2019-04-26T10:39:51Z","updated_at":"2019-04-26T17:49:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2340c4d9072055d79b4f072af12a3e187da71ef9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1278033796,"node_id":"MDU6TGFiZWwxMjc4MDMzNzk2","url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/labels/group09","name":"group09","color":"f3ffaf","default":false},{"id":1330626996,"node_id":"MDU6TGFiZWwxMzMwNjI2OTk2","url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/labels/task09","name":"task09","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148/commits","review_comments_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148/comments","review_comment_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues/148/comments","statuses_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/statuses/ca30c805a45a07d05cf3ca1c50b2fc79860f6c47","head":{"label":"Peltorator:master","ref":"master","sha":"ca30c805a45a07d05cf3ca1c50b2fc79860f6c47","user":{"login":"Peltorator","id":25479468,"node_id":"MDQ6VXNlcjI1NDc5NDY4","avatar_url":"https://avatars2.githubusercontent.com/u/25479468?v=4","gravatar_id":"","url":"https://api.github.com/users/Peltorator","html_url":"https://github.com/Peltorator","followers_url":"https://api.github.com/users/Peltorator/followers","following_url":"https://api.github.com/users/Peltorator/following{/other_user}","gists_url":"https://api.github.com/users/Peltorator/gists{/gist_id}","starred_url":"https://api.github.com/users/Peltorator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peltorator/subscriptions","organizations_url":"https://api.github.com/users/Peltorator/orgs","repos_url":"https://api.github.com/users/Peltorator/repos","events_url":"https://api.github.com/users/Peltorator/events{/privacy}","received_events_url":"https://api.github.com/users/Peltorator/received_events","type":"User","site_admin":false},"repo":{"id":176352740,"node_id":"MDEwOlJlcG9zaXRvcnkxNzYzNTI3NDA=","name":"spring-2019-paradigms-tasks","full_name":"Peltorator/spring-2019-paradigms-tasks","private":false,"owner":{"login":"Peltorator","id":25479468,"node_id":"MDQ6VXNlcjI1NDc5NDY4","avatar_url":"https://avatars2.githubusercontent.com/u/25479468?v=4","gravatar_id":"","url":"https://api.github.com/users/Peltorator","html_url":"https://github.com/Peltorator","followers_url":"https://api.github.com/users/Peltorator/followers","following_url":"https://api.github.com/users/Peltorator/following{/other_user}","gists_url":"https://api.github.com/users/Peltorator/gists{/gist_id}","starred_url":"https://api.github.com/users/Peltorator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peltorator/subscriptions","organizations_url":"https://api.github.com/users/Peltorator/orgs","repos_url":"https://api.github.com/users/Peltorator/repos","events_url":"https://api.github.com/users/Peltorator/events{/privacy}","received_events_url":"https://api.github.com/users/Peltorator/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Peltorator/spring-2019-paradigms-tasks","description":null,"fork":true,"url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks","forks_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/forks","keys_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/teams","hooks_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/hooks","issue_events_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/events","assignees_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/tags","blobs_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/languages","stargazers_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/stargazers","contributors_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/contributors","subscribers_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/subscribers","subscription_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/subscription","commits_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/merges","archive_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/downloads","issues_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/labels{/name}","releases_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/Peltorator/spring-2019-paradigms-tasks/deployments","created_at":"2019-03-18T19:07:29Z","updated_at":"2019-04-26T17:36:03Z","pushed_at":"2019-04-26T17:36:01Z","git_url":"git://github.com/Peltorator/spring-2019-paradigms-tasks.git","ssh_url":"git@github.com:Peltorator/spring-2019-paradigms-tasks.git","clone_url":"https://github.com/Peltorator/spring-2019-paradigms-tasks.git","svn_url":"https://github.com/Peltorator/spring-2019-paradigms-tasks","homepage":null,"size":623,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yeputons:master","ref":"master","sha":"2e5ef159f9d44368bb85b87ccd987990f073c2d3","user":{"login":"yeputons","id":1297325,"node_id":"MDQ6VXNlcjEyOTczMjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1297325?v=4","gravatar_id":"","url":"https://api.github.com/users/yeputons","html_url":"https://github.com/yeputons","followers_url":"https://api.github.com/users/yeputons/followers","following_url":"https://api.github.com/users/yeputons/following{/other_user}","gists_url":"https://api.github.com/users/yeputons/gists{/gist_id}","starred_url":"https://api.github.com/users/yeputons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeputons/subscriptions","organizations_url":"https://api.github.com/users/yeputons/orgs","repos_url":"https://api.github.com/users/yeputons/repos","events_url":"https://api.github.com/users/yeputons/events{/privacy}","received_events_url":"https://api.github.com/users/yeputons/received_events","type":"User","site_admin":false},"repo":{"id":169986208,"node_id":"MDEwOlJlcG9zaXRvcnkxNjk5ODYyMDg=","name":"spring-2019-paradigms-tasks","full_name":"yeputons/spring-2019-paradigms-tasks","private":false,"owner":{"login":"yeputons","id":1297325,"node_id":"MDQ6VXNlcjEyOTczMjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1297325?v=4","gravatar_id":"","url":"https://api.github.com/users/yeputons","html_url":"https://github.com/yeputons","followers_url":"https://api.github.com/users/yeputons/followers","following_url":"https://api.github.com/users/yeputons/following{/other_user}","gists_url":"https://api.github.com/users/yeputons/gists{/gist_id}","starred_url":"https://api.github.com/users/yeputons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeputons/subscriptions","organizations_url":"https://api.github.com/users/yeputons/orgs","repos_url":"https://api.github.com/users/yeputons/repos","events_url":"https://api.github.com/users/yeputons/events{/privacy}","received_events_url":"https://api.github.com/users/yeputons/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yeputons/spring-2019-paradigms-tasks","description":null,"fork":false,"url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks","forks_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/forks","keys_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/teams","hooks_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/hooks","issue_events_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/events","assignees_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/tags","blobs_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/languages","stargazers_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/stargazers","contributors_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/contributors","subscribers_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/subscribers","subscription_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/subscription","commits_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/merges","archive_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/downloads","issues_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/labels{/name}","releases_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/deployments","created_at":"2019-02-10T14:21:48Z","updated_at":"2019-04-25T19:36:05Z","pushed_at":"2019-04-26T17:36:02Z","git_url":"git://github.com/yeputons/spring-2019-paradigms-tasks.git","ssh_url":"git@github.com:yeputons/spring-2019-paradigms-tasks.git","clone_url":"https://github.com/yeputons/spring-2019-paradigms-tasks.git","svn_url":"https://github.com/yeputons/spring-2019-paradigms-tasks","homepage":null,"size":729,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":21,"license":null,"forks":29,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148"},"html":{"href":"https://github.com/yeputons/spring-2019-paradigms-tasks/pull/148"},"issue":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues/148"},"comments":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/yeputons/spring-2019-paradigms-tasks/statuses/ca30c805a45a07d05cf3ca1c50b2fc79860f6c47"}},"author_association":"NONE"}}
{"actor":{"display_login":"yeputons"}}