{"action":"created","comment":{"url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/comments/40085170","id":40085170,"diff_hunk":"@@ -30,19 +30,21 @@\n  */\n \n /** Constructor. */\n-ConveyorBeltThread::ConveyorBeltThread() :\n+ConveyorBeltThread::ConveyorBeltThread(std::string mode) :\n         Thread(\"ConveyorBeltThread\", Thread::OPMODE_CONTINUOUS), zmq_context_(NULL), zmq_publisher_(NULL), zmq_subscriber_(NULL), cfg_timer_interval_(40), default_network_interface_(\"eth0\")\n {\n+    mode_ = mode;\n+    last_status_mutex_ = new fawkes::Mutex();","path":"rockin/plugins/conveyor_belt/conveyor_belt_thread.cpp","position":9,"original_position":9,"commit_id":"24cfe1760b6ff36d1948ad30d7154bf507a8366d","original_commit_id":"24cfe1760b6ff36d1948ad30d7154bf507a8366d","user":{"login":"svenschneider","id":568789,"avatar_url":"https://avatars.githubusercontent.com/u/568789?v=3","gravatar_id":"","url":"https://api.github.com/users/svenschneider","html_url":"https://github.com/svenschneider","followers_url":"https://api.github.com/users/svenschneider/followers","following_url":"https://api.github.com/users/svenschneider/following{/other_user}","gists_url":"https://api.github.com/users/svenschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/svenschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenschneider/subscriptions","organizations_url":"https://api.github.com/users/svenschneider/orgs","repos_url":"https://api.github.com/users/svenschneider/repos","events_url":"https://api.github.com/users/svenschneider/events{/privacy}","received_events_url":"https://api.github.com/users/svenschneider/received_events","type":"User","site_admin":false},"body":"Why don't you allocate the mutex on the stack (as a member in the class, but not a pointer)?","created_at":"2015-09-22T13:28:47Z","updated_at":"2015-09-22T13:28:47Z","html_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub/pull/10#discussion_r40085170","pull_request_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/comments/40085170"},"html":{"href":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub/pull/10#discussion_r40085170"},"pull_request":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10","id":45662025,"html_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub/pull/10","diff_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub/pull/10.diff","patch_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub/pull/10.patch","issue_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues/10","number":10,"state":"open","locked":false,"title":"Simulated Drilling Machine and Conveyor Belt","user":{"login":"moriarty","id":55676,"avatar_url":"https://avatars.githubusercontent.com/u/55676?v=3","gravatar_id":"","url":"https://api.github.com/users/moriarty","html_url":"https://github.com/moriarty","followers_url":"https://api.github.com/users/moriarty/followers","following_url":"https://api.github.com/users/moriarty/following{/other_user}","gists_url":"https://api.github.com/users/moriarty/gists{/gist_id}","starred_url":"https://api.github.com/users/moriarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moriarty/subscriptions","organizations_url":"https://api.github.com/users/moriarty/orgs","repos_url":"https://api.github.com/users/moriarty/repos","events_url":"https://api.github.com/users/moriarty/events{/privacy}","received_events_url":"https://api.github.com/users/moriarty/received_events","type":"User","site_admin":false},"body":"@svenschneider - can you take a look, thanks. ","created_at":"2015-09-22T13:21:44Z","updated_at":"2015-09-22T13:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1211ef9190f960a543ce86e8fa477fc0a9af51ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10/commits","review_comments_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10/comments","review_comment_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues/10/comments","statuses_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/statuses/24cfe1760b6ff36d1948ad30d7154bf507a8366d","head":{"label":"moriarty:simulated-machines","ref":"simulated-machines","sha":"24cfe1760b6ff36d1948ad30d7154bf507a8366d","user":{"login":"moriarty","id":55676,"avatar_url":"https://avatars.githubusercontent.com/u/55676?v=3","gravatar_id":"","url":"https://api.github.com/users/moriarty","html_url":"https://github.com/moriarty","followers_url":"https://api.github.com/users/moriarty/followers","following_url":"https://api.github.com/users/moriarty/following{/other_user}","gists_url":"https://api.github.com/users/moriarty/gists{/gist_id}","starred_url":"https://api.github.com/users/moriarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moriarty/subscriptions","organizations_url":"https://api.github.com/users/moriarty/orgs","repos_url":"https://api.github.com/users/moriarty/repos","events_url":"https://api.github.com/users/moriarty/events{/privacy}","received_events_url":"https://api.github.com/users/moriarty/received_events","type":"User","site_admin":false},"repo":{"id":26919082,"name":"rockin-refbox","full_name":"moriarty/rockin-refbox","owner":{"login":"moriarty","id":55676,"avatar_url":"https://avatars.githubusercontent.com/u/55676?v=3","gravatar_id":"","url":"https://api.github.com/users/moriarty","html_url":"https://github.com/moriarty","followers_url":"https://api.github.com/users/moriarty/followers","following_url":"https://api.github.com/users/moriarty/following{/other_user}","gists_url":"https://api.github.com/users/moriarty/gists{/gist_id}","starred_url":"https://api.github.com/users/moriarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moriarty/subscriptions","organizations_url":"https://api.github.com/users/moriarty/orgs","repos_url":"https://api.github.com/users/moriarty/repos","events_url":"https://api.github.com/users/moriarty/events{/privacy}","received_events_url":"https://api.github.com/users/moriarty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moriarty/rockin-refbox","description":"The referee box for the RoCKIn competitions.","fork":true,"url":"https://api.github.com/repos/moriarty/rockin-refbox","forks_url":"https://api.github.com/repos/moriarty/rockin-refbox/forks","keys_url":"https://api.github.com/repos/moriarty/rockin-refbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moriarty/rockin-refbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moriarty/rockin-refbox/teams","hooks_url":"https://api.github.com/repos/moriarty/rockin-refbox/hooks","issue_events_url":"https://api.github.com/repos/moriarty/rockin-refbox/issues/events{/number}","events_url":"https://api.github.com/repos/moriarty/rockin-refbox/events","assignees_url":"https://api.github.com/repos/moriarty/rockin-refbox/assignees{/user}","branches_url":"https://api.github.com/repos/moriarty/rockin-refbox/branches{/branch}","tags_url":"https://api.github.com/repos/moriarty/rockin-refbox/tags","blobs_url":"https://api.github.com/repos/moriarty/rockin-refbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moriarty/rockin-refbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moriarty/rockin-refbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/moriarty/rockin-refbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moriarty/rockin-refbox/statuses/{sha}","languages_url":"https://api.github.com/repos/moriarty/rockin-refbox/languages","stargazers_url":"https://api.github.com/repos/moriarty/rockin-refbox/stargazers","contributors_url":"https://api.github.com/repos/moriarty/rockin-refbox/contributors","subscribers_url":"https://api.github.com/repos/moriarty/rockin-refbox/subscribers","subscription_url":"https://api.github.com/repos/moriarty/rockin-refbox/subscription","commits_url":"https://api.github.com/repos/moriarty/rockin-refbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/moriarty/rockin-refbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/moriarty/rockin-refbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/moriarty/rockin-refbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/moriarty/rockin-refbox/contents/{+path}","compare_url":"https://api.github.com/repos/moriarty/rockin-refbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moriarty/rockin-refbox/merges","archive_url":"https://api.github.com/repos/moriarty/rockin-refbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moriarty/rockin-refbox/downloads","issues_url":"https://api.github.com/repos/moriarty/rockin-refbox/issues{/number}","pulls_url":"https://api.github.com/repos/moriarty/rockin-refbox/pulls{/number}","milestones_url":"https://api.github.com/repos/moriarty/rockin-refbox/milestones{/number}","notifications_url":"https://api.github.com/repos/moriarty/rockin-refbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moriarty/rockin-refbox/labels{/name}","releases_url":"https://api.github.com/repos/moriarty/rockin-refbox/releases{/id}","created_at":"2014-11-20T15:42:06Z","updated_at":"2014-11-20T15:42:07Z","pushed_at":"2015-09-22T13:18:13Z","git_url":"git://github.com/moriarty/rockin-refbox.git","ssh_url":"git@github.com:moriarty/rockin-refbox.git","clone_url":"https://github.com/moriarty/rockin-refbox.git","svn_url":"https://github.com/moriarty/rockin-refbox","homepage":"http://www.rockinrobotchallenge.eu/","size":2518,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"rockin"}},"base":{"label":"rockin-robot-challenge:rockin2015","ref":"rockin2015","sha":"0e50ac344c2eaf25fc5bda7fd41b8f509f3995b7","user":{"login":"rockin-robot-challenge","id":11645670,"avatar_url":"https://avatars.githubusercontent.com/u/11645670?v=3","gravatar_id":"","url":"https://api.github.com/users/rockin-robot-challenge","html_url":"https://github.com/rockin-robot-challenge","followers_url":"https://api.github.com/users/rockin-robot-challenge/followers","following_url":"https://api.github.com/users/rockin-robot-challenge/following{/other_user}","gists_url":"https://api.github.com/users/rockin-robot-challenge/gists{/gist_id}","starred_url":"https://api.github.com/users/rockin-robot-challenge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockin-robot-challenge/subscriptions","organizations_url":"https://api.github.com/users/rockin-robot-challenge/orgs","repos_url":"https://api.github.com/users/rockin-robot-challenge/repos","events_url":"https://api.github.com/users/rockin-robot-challenge/events{/privacy}","received_events_url":"https://api.github.com/users/rockin-robot-challenge/received_events","type":"Organization","site_admin":false},"repo":{"id":22916647,"name":"at_work_central_factory_hub","full_name":"rockin-robot-challenge/at_work_central_factory_hub","owner":{"login":"rockin-robot-challenge","id":11645670,"avatar_url":"https://avatars.githubusercontent.com/u/11645670?v=3","gravatar_id":"","url":"https://api.github.com/users/rockin-robot-challenge","html_url":"https://github.com/rockin-robot-challenge","followers_url":"https://api.github.com/users/rockin-robot-challenge/followers","following_url":"https://api.github.com/users/rockin-robot-challenge/following{/other_user}","gists_url":"https://api.github.com/users/rockin-robot-challenge/gists{/gist_id}","starred_url":"https://api.github.com/users/rockin-robot-challenge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockin-robot-challenge/subscriptions","organizations_url":"https://api.github.com/users/rockin-robot-challenge/orgs","repos_url":"https://api.github.com/users/rockin-robot-challenge/repos","events_url":"https://api.github.com/users/rockin-robot-challenge/events{/privacy}","received_events_url":"https://api.github.com/users/rockin-robot-challenge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub","description":"The referee box for the RoCKIn competitions.","fork":false,"url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub","forks_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/forks","keys_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/teams","hooks_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/hooks","issue_events_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues/events{/number}","events_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/events","assignees_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/assignees{/user}","branches_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/branches{/branch}","tags_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/tags","blobs_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/statuses/{sha}","languages_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/languages","stargazers_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/stargazers","contributors_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/contributors","subscribers_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/subscribers","subscription_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/subscription","commits_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/contents/{+path}","compare_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/merges","archive_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/downloads","issues_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues{/number}","pulls_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls{/number}","milestones_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/milestones{/number}","notifications_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/labels{/name}","releases_url":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/releases{/id}","created_at":"2014-08-13T13:33:20Z","updated_at":"2015-07-13T13:47:08Z","pushed_at":"2015-09-22T13:21:46Z","git_url":"git://github.com/rockin-robot-challenge/at_work_central_factory_hub.git","ssh_url":"git@github.com:rockin-robot-challenge/at_work_central_factory_hub.git","clone_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub.git","svn_url":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub","homepage":"http://www.rockinrobotchallenge.eu/","size":2999,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":1,"default_branch":"rockin"}},"_links":{"self":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10"},"html":{"href":"https://github.com/rockin-robot-challenge/at_work_central_factory_hub/pull/10"},"issue":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues/10"},"comments":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/rockin-robot-challenge/at_work_central_factory_hub/statuses/24cfe1760b6ff36d1948ad30d7154bf507a8366d"}}}}