{"action":"closed","number":4085,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4085","id":47535809,"html_url":"https://github.com/RIOT-OS/RIOT/pull/4085","diff_url":"https://github.com/RIOT-OS/RIOT/pull/4085.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/4085.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4085","number":4085,"state":"closed","locked":false,"title":"Merging mutex_lock and mutex_wait","user":{"login":"IldarValiev","id":14959711,"avatar_url":"https://avatars.githubusercontent.com/u/14959711?v=3","gravatar_id":"","url":"https://api.github.com/users/IldarValiev","html_url":"https://github.com/IldarValiev","followers_url":"https://api.github.com/users/IldarValiev/followers","following_url":"https://api.github.com/users/IldarValiev/following{/other_user}","gists_url":"https://api.github.com/users/IldarValiev/gists{/gist_id}","starred_url":"https://api.github.com/users/IldarValiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IldarValiev/subscriptions","organizations_url":"https://api.github.com/users/IldarValiev/orgs","repos_url":"https://api.github.com/users/IldarValiev/repos","events_url":"https://api.github.com/users/IldarValiev/events{/privacy}","received_events_url":"https://api.github.com/users/IldarValiev/received_events","type":"User","site_admin":false},"body":"mutex_lock function was meaningless. It checked the mutex and if it was locked then this function checked it again in mutex_wait. In this PR I merged two functions in one and changed the sequence of DEBUG messages.\r\n\r\nmutex_wait was not used anywhere in the code, as far as I know.\r\n\r\nmutex_unlock_and_sleep test OK.","created_at":"2015-10-13T13:55:01Z","updated_at":"2015-10-21T15:13:41Z","closed_at":"2015-10-21T15:13:41Z","merged_at":null,"merge_commit_sha":"b375dffe621b59db7ea240f4fd5cc5354faf21bc","assignee":{"login":"kaspar030","id":4679640,"avatar_url":"https://avatars.githubusercontent.com/u/4679640?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspar030","html_url":"https://github.com/kaspar030","followers_url":"https://api.github.com/users/kaspar030/followers","following_url":"https://api.github.com/users/kaspar030/following{/other_user}","gists_url":"https://api.github.com/users/kaspar030/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspar030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspar030/subscriptions","organizations_url":"https://api.github.com/users/kaspar030/orgs","repos_url":"https://api.github.com/users/kaspar030/repos","events_url":"https://api.github.com/users/kaspar030/events{/privacy}","received_events_url":"https://api.github.com/users/kaspar030/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4085/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4085/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4085/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/a4a9ffaa188b8d4eae8162037bcb8ffa17db1b3b","head":{"label":"IldarValiev:patch-4","ref":"patch-4","sha":"a4a9ffaa188b8d4eae8162037bcb8ffa17db1b3b","user":{"login":"IldarValiev","id":14959711,"avatar_url":"https://avatars.githubusercontent.com/u/14959711?v=3","gravatar_id":"","url":"https://api.github.com/users/IldarValiev","html_url":"https://github.com/IldarValiev","followers_url":"https://api.github.com/users/IldarValiev/followers","following_url":"https://api.github.com/users/IldarValiev/following{/other_user}","gists_url":"https://api.github.com/users/IldarValiev/gists{/gist_id}","starred_url":"https://api.github.com/users/IldarValiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IldarValiev/subscriptions","organizations_url":"https://api.github.com/users/IldarValiev/orgs","repos_url":"https://api.github.com/users/IldarValiev/repos","events_url":"https://api.github.com/users/IldarValiev/events{/privacy}","received_events_url":"https://api.github.com/users/IldarValiev/received_events","type":"User","site_admin":false},"repo":{"id":43688490,"name":"RIOT","full_name":"IldarValiev/RIOT","owner":{"login":"IldarValiev","id":14959711,"avatar_url":"https://avatars.githubusercontent.com/u/14959711?v=3","gravatar_id":"","url":"https://api.github.com/users/IldarValiev","html_url":"https://github.com/IldarValiev","followers_url":"https://api.github.com/users/IldarValiev/followers","following_url":"https://api.github.com/users/IldarValiev/following{/other_user}","gists_url":"https://api.github.com/users/IldarValiev/gists{/gist_id}","starred_url":"https://api.github.com/users/IldarValiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IldarValiev/subscriptions","organizations_url":"https://api.github.com/users/IldarValiev/orgs","repos_url":"https://api.github.com/users/IldarValiev/repos","events_url":"https://api.github.com/users/IldarValiev/events{/privacy}","received_events_url":"https://api.github.com/users/IldarValiev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IldarValiev/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/IldarValiev/RIOT","forks_url":"https://api.github.com/repos/IldarValiev/RIOT/forks","keys_url":"https://api.github.com/repos/IldarValiev/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IldarValiev/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IldarValiev/RIOT/teams","hooks_url":"https://api.github.com/repos/IldarValiev/RIOT/hooks","issue_events_url":"https://api.github.com/repos/IldarValiev/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/IldarValiev/RIOT/events","assignees_url":"https://api.github.com/repos/IldarValiev/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/IldarValiev/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/IldarValiev/RIOT/tags","blobs_url":"https://api.github.com/repos/IldarValiev/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IldarValiev/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IldarValiev/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/IldarValiev/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IldarValiev/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/IldarValiev/RIOT/languages","stargazers_url":"https://api.github.com/repos/IldarValiev/RIOT/stargazers","contributors_url":"https://api.github.com/repos/IldarValiev/RIOT/contributors","subscribers_url":"https://api.github.com/repos/IldarValiev/RIOT/subscribers","subscription_url":"https://api.github.com/repos/IldarValiev/RIOT/subscription","commits_url":"https://api.github.com/repos/IldarValiev/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/IldarValiev/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/IldarValiev/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/IldarValiev/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/IldarValiev/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/IldarValiev/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IldarValiev/RIOT/merges","archive_url":"https://api.github.com/repos/IldarValiev/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IldarValiev/RIOT/downloads","issues_url":"https://api.github.com/repos/IldarValiev/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/IldarValiev/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/IldarValiev/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/IldarValiev/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IldarValiev/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/IldarValiev/RIOT/releases{/id}","created_at":"2015-10-05T14:15:53Z","updated_at":"2015-10-05T14:16:07Z","pushed_at":"2015-10-14T13:08:24Z","git_url":"git://github.com/IldarValiev/RIOT.git","ssh_url":"git@github.com:IldarValiev/RIOT.git","clone_url":"https://github.com/IldarValiev/RIOT.git","svn_url":"https://github.com/IldarValiev/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":21169,"stargazers_count":0,"watchers_count":0,"language":"C","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":"RIOT-OS:master","ref":"master","sha":"ac1fcde44e79e04245f880b7f18bacb49d7ea87a","user":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","created_at":"2012-12-29T20:38:40Z","updated_at":"2015-10-20T23:29:05Z","pushed_at":"2015-10-21T15:09:39Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":132925,"stargazers_count":528,"watchers_count":528,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":416,"mirror_url":null,"open_issues_count":401,"forks":416,"open_issues":401,"watchers":528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4085"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/4085"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4085"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4085/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4085/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4085/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/a4a9ffaa188b8d4eae8162037bcb8ffa17db1b3b"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":8,"review_comments":0,"commits":1,"additions":8,"deletions":16,"changed_files":1}}