{"action":"created","comment":{"url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments/26107168","id":26107168,"diff_hunk":"@@ -72,26 +83,19 @@ void RequestHandler::processPUT_( const ::zeq::Event& event )\n {\n     publisher_->publish( event );\n     std::ostringstream data;\n-    data << \"Detected a PUT.\" <<std::endl;\n     response_ = server::response::stock_reply( server::response::ok, data.str() );\n }\n \n void RequestHandler::processGET_( const ::zeq::Event& event )\n {\n-    blocked_ = true;\n     publisher_->publish( event );\n-\n-    while( blocked_ )\n-    {\n-        while( subscriber_->receive( 0 ) ){}\n-    }\n+    requestBarrier_.lock();","path":"restconnector/RequestHandler.cpp","position":50,"original_position":50,"commit_id":"a3e497f44294c945914fc96e8387146c6248a99c","original_commit_id":"a3e497f44294c945914fc96e8387146c6248a99c","user":{"login":"eile","id":354947,"avatar_url":"https://avatars.githubusercontent.com/u/354947?v=3","gravatar_id":"","url":"https://api.github.com/users/eile","html_url":"https://github.com/eile","followers_url":"https://api.github.com/users/eile/followers","following_url":"https://api.github.com/users/eile/following{/other_user}","gists_url":"https://api.github.com/users/eile/gists{/gist_id}","starred_url":"https://api.github.com/users/eile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eile/subscriptions","organizations_url":"https://api.github.com/users/eile/orgs","repos_url":"https://api.github.com/users/eile/repos","events_url":"https://api.github.com/users/eile/events{/privacy}","received_events_url":"https://api.github.com/users/eile/received_events","type":"User","site_admin":false},"body":"Please add a comment here why and where unlocked.","created_at":"2015-03-10T09:20:37Z","updated_at":"2015-03-10T09:20:37Z","html_url":"https://github.com/BlueBrain/RESTConnector/pull/3#discussion_r26107168","pull_request_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments/26107168"},"html":{"href":"https://github.com/BlueBrain/RESTConnector/pull/3#discussion_r26107168"},"pull_request":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3","id":30478830,"html_url":"https://github.com/BlueBrain/RESTConnector/pull/3","diff_url":"https://github.com/BlueBrain/RESTConnector/pull/3.diff","patch_url":"https://github.com/BlueBrain/RESTConnector/pull/3.patch","issue_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/3","number":3,"state":"open","locked":false,"title":"Added listening thread + tests and apps folders","user":{"login":"chevtche","id":10452408,"avatar_url":"https://avatars.githubusercontent.com/u/10452408?v=3","gravatar_id":"","url":"https://api.github.com/users/chevtche","html_url":"https://github.com/chevtche","followers_url":"https://api.github.com/users/chevtche/followers","following_url":"https://api.github.com/users/chevtche/following{/other_user}","gists_url":"https://api.github.com/users/chevtche/gists{/gist_id}","starred_url":"https://api.github.com/users/chevtche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chevtche/subscriptions","organizations_url":"https://api.github.com/users/chevtche/orgs","repos_url":"https://api.github.com/users/chevtche/repos","events_url":"https://api.github.com/users/chevtche/events{/privacy}","received_events_url":"https://api.github.com/users/chevtche/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-04T16:13:13Z","updated_at":"2015-03-10T09:20:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89e3edf284fe71d6aca1387cb162490c2a39ea8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3/commits","review_comments_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3/comments","review_comment_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/3/comments","statuses_url":"https://api.github.com/repos/BlueBrain/RESTConnector/statuses/a3e497f44294c945914fc96e8387146c6248a99c","head":{"label":"chevtche:master","ref":"master","sha":"a3e497f44294c945914fc96e8387146c6248a99c","user":{"login":"chevtche","id":10452408,"avatar_url":"https://avatars.githubusercontent.com/u/10452408?v=3","gravatar_id":"","url":"https://api.github.com/users/chevtche","html_url":"https://github.com/chevtche","followers_url":"https://api.github.com/users/chevtche/followers","following_url":"https://api.github.com/users/chevtche/following{/other_user}","gists_url":"https://api.github.com/users/chevtche/gists{/gist_id}","starred_url":"https://api.github.com/users/chevtche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chevtche/subscriptions","organizations_url":"https://api.github.com/users/chevtche/orgs","repos_url":"https://api.github.com/users/chevtche/repos","events_url":"https://api.github.com/users/chevtche/events{/privacy}","received_events_url":"https://api.github.com/users/chevtche/received_events","type":"User","site_admin":false},"repo":{"id":30925249,"name":"RESTConnector","full_name":"chevtche/RESTConnector","owner":{"login":"chevtche","id":10452408,"avatar_url":"https://avatars.githubusercontent.com/u/10452408?v=3","gravatar_id":"","url":"https://api.github.com/users/chevtche","html_url":"https://github.com/chevtche","followers_url":"https://api.github.com/users/chevtche/followers","following_url":"https://api.github.com/users/chevtche/following{/other_user}","gists_url":"https://api.github.com/users/chevtche/gists{/gist_id}","starred_url":"https://api.github.com/users/chevtche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chevtche/subscriptions","organizations_url":"https://api.github.com/users/chevtche/orgs","repos_url":"https://api.github.com/users/chevtche/repos","events_url":"https://api.github.com/users/chevtche/events{/privacy}","received_events_url":"https://api.github.com/users/chevtche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chevtche/RESTConnector","description":"Exposes a REST interface for C++ applications","fork":true,"url":"https://api.github.com/repos/chevtche/RESTConnector","forks_url":"https://api.github.com/repos/chevtche/RESTConnector/forks","keys_url":"https://api.github.com/repos/chevtche/RESTConnector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chevtche/RESTConnector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chevtche/RESTConnector/teams","hooks_url":"https://api.github.com/repos/chevtche/RESTConnector/hooks","issue_events_url":"https://api.github.com/repos/chevtche/RESTConnector/issues/events{/number}","events_url":"https://api.github.com/repos/chevtche/RESTConnector/events","assignees_url":"https://api.github.com/repos/chevtche/RESTConnector/assignees{/user}","branches_url":"https://api.github.com/repos/chevtche/RESTConnector/branches{/branch}","tags_url":"https://api.github.com/repos/chevtche/RESTConnector/tags","blobs_url":"https://api.github.com/repos/chevtche/RESTConnector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chevtche/RESTConnector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chevtche/RESTConnector/git/refs{/sha}","trees_url":"https://api.github.com/repos/chevtche/RESTConnector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chevtche/RESTConnector/statuses/{sha}","languages_url":"https://api.github.com/repos/chevtche/RESTConnector/languages","stargazers_url":"https://api.github.com/repos/chevtche/RESTConnector/stargazers","contributors_url":"https://api.github.com/repos/chevtche/RESTConnector/contributors","subscribers_url":"https://api.github.com/repos/chevtche/RESTConnector/subscribers","subscription_url":"https://api.github.com/repos/chevtche/RESTConnector/subscription","commits_url":"https://api.github.com/repos/chevtche/RESTConnector/commits{/sha}","git_commits_url":"https://api.github.com/repos/chevtche/RESTConnector/git/commits{/sha}","comments_url":"https://api.github.com/repos/chevtche/RESTConnector/comments{/number}","issue_comment_url":"https://api.github.com/repos/chevtche/RESTConnector/issues/comments{/number}","contents_url":"https://api.github.com/repos/chevtche/RESTConnector/contents/{+path}","compare_url":"https://api.github.com/repos/chevtche/RESTConnector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chevtche/RESTConnector/merges","archive_url":"https://api.github.com/repos/chevtche/RESTConnector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chevtche/RESTConnector/downloads","issues_url":"https://api.github.com/repos/chevtche/RESTConnector/issues{/number}","pulls_url":"https://api.github.com/repos/chevtche/RESTConnector/pulls{/number}","milestones_url":"https://api.github.com/repos/chevtche/RESTConnector/milestones{/number}","notifications_url":"https://api.github.com/repos/chevtche/RESTConnector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chevtche/RESTConnector/labels{/name}","releases_url":"https://api.github.com/repos/chevtche/RESTConnector/releases{/id}","created_at":"2015-02-17T16:15:54Z","updated_at":"2015-03-10T09:00:07Z","pushed_at":"2015-03-10T09:00:07Z","git_url":"git://github.com/chevtche/RESTConnector.git","ssh_url":"git@github.com:chevtche/RESTConnector.git","clone_url":"https://github.com/chevtche/RESTConnector.git","svn_url":"https://github.com/chevtche/RESTConnector","homepage":null,"size":155,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BlueBrain:master","ref":"master","sha":"627881884eadc9add955eb406c3711e98a92fc28","user":{"login":"BlueBrain","id":1479142,"avatar_url":"https://avatars.githubusercontent.com/u/1479142?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueBrain","html_url":"https://github.com/BlueBrain","followers_url":"https://api.github.com/users/BlueBrain/followers","following_url":"https://api.github.com/users/BlueBrain/following{/other_user}","gists_url":"https://api.github.com/users/BlueBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueBrain/subscriptions","organizations_url":"https://api.github.com/users/BlueBrain/orgs","repos_url":"https://api.github.com/users/BlueBrain/repos","events_url":"https://api.github.com/users/BlueBrain/events{/privacy}","received_events_url":"https://api.github.com/users/BlueBrain/received_events","type":"Organization","site_admin":false},"repo":{"id":29182982,"name":"RESTConnector","full_name":"BlueBrain/RESTConnector","owner":{"login":"BlueBrain","id":1479142,"avatar_url":"https://avatars.githubusercontent.com/u/1479142?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueBrain","html_url":"https://github.com/BlueBrain","followers_url":"https://api.github.com/users/BlueBrain/followers","following_url":"https://api.github.com/users/BlueBrain/following{/other_user}","gists_url":"https://api.github.com/users/BlueBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueBrain/subscriptions","organizations_url":"https://api.github.com/users/BlueBrain/orgs","repos_url":"https://api.github.com/users/BlueBrain/repos","events_url":"https://api.github.com/users/BlueBrain/events{/privacy}","received_events_url":"https://api.github.com/users/BlueBrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlueBrain/RESTConnector","description":"Exposes a REST interface for C++ applications","fork":false,"url":"https://api.github.com/repos/BlueBrain/RESTConnector","forks_url":"https://api.github.com/repos/BlueBrain/RESTConnector/forks","keys_url":"https://api.github.com/repos/BlueBrain/RESTConnector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlueBrain/RESTConnector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlueBrain/RESTConnector/teams","hooks_url":"https://api.github.com/repos/BlueBrain/RESTConnector/hooks","issue_events_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/events{/number}","events_url":"https://api.github.com/repos/BlueBrain/RESTConnector/events","assignees_url":"https://api.github.com/repos/BlueBrain/RESTConnector/assignees{/user}","branches_url":"https://api.github.com/repos/BlueBrain/RESTConnector/branches{/branch}","tags_url":"https://api.github.com/repos/BlueBrain/RESTConnector/tags","blobs_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlueBrain/RESTConnector/statuses/{sha}","languages_url":"https://api.github.com/repos/BlueBrain/RESTConnector/languages","stargazers_url":"https://api.github.com/repos/BlueBrain/RESTConnector/stargazers","contributors_url":"https://api.github.com/repos/BlueBrain/RESTConnector/contributors","subscribers_url":"https://api.github.com/repos/BlueBrain/RESTConnector/subscribers","subscription_url":"https://api.github.com/repos/BlueBrain/RESTConnector/subscription","commits_url":"https://api.github.com/repos/BlueBrain/RESTConnector/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlueBrain/RESTConnector/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlueBrain/RESTConnector/contents/{+path}","compare_url":"https://api.github.com/repos/BlueBrain/RESTConnector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlueBrain/RESTConnector/merges","archive_url":"https://api.github.com/repos/BlueBrain/RESTConnector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlueBrain/RESTConnector/downloads","issues_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues{/number}","pulls_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls{/number}","milestones_url":"https://api.github.com/repos/BlueBrain/RESTConnector/milestones{/number}","notifications_url":"https://api.github.com/repos/BlueBrain/RESTConnector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlueBrain/RESTConnector/labels{/name}","releases_url":"https://api.github.com/repos/BlueBrain/RESTConnector/releases{/id}","created_at":"2015-01-13T09:36:54Z","updated_at":"2015-03-04T12:23:00Z","pushed_at":"2015-03-04T12:23:00Z","git_url":"git://github.com/BlueBrain/RESTConnector.git","ssh_url":"git@github.com:BlueBrain/RESTConnector.git","clone_url":"https://github.com/BlueBrain/RESTConnector.git","svn_url":"https://github.com/BlueBrain/RESTConnector","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3"},"html":{"href":"https://github.com/BlueBrain/RESTConnector/pull/3"},"issue":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/3"},"comments":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/statuses/a3e497f44294c945914fc96e8387146c6248a99c"}}}}