{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/89275476","pull_request_review_id":9821320,"id":89275476,"diff_hunk":"@@ -279,6 +280,19 @@ int xtimer_msg_receive_timeout(msg_t *msg, uint32_t us);\n int xtimer_msg_receive_timeout64(msg_t *msg, uint64_t us);\n \n /**\n+ * @brief lock a mutex but with timeout\n+ *\n+ * @note this requires core_thread_flags to be enabled\n+ *\n+ * @param[in]    mutex  mutex to lock\n+ * @param[in]    us     timeout in microseconds relative\n+ *\n+ * @return       0, when returned after mutex was locked\n+ * @return       -1, when the timeout occcured\n+ */\n+int xtimer_mutex_lock_timeout(mutex_t *mutex, uint64_t us);","path":"sys/include/xtimer.h","position":22,"original_position":22,"commit_id":"7d5ab34b53c6ed8bc7532f9b5da7003365579030","original_commit_id":"e979f929f605dc056bd6fd19695f4613b58d64ff","user":{"login":"lebrush","id":1437538,"avatar_url":"https://avatars.githubusercontent.com/u/1437538?v=3","gravatar_id":"","url":"https://api.github.com/users/lebrush","html_url":"https://github.com/lebrush","followers_url":"https://api.github.com/users/lebrush/followers","following_url":"https://api.github.com/users/lebrush/following{/other_user}","gists_url":"https://api.github.com/users/lebrush/gists{/gist_id}","starred_url":"https://api.github.com/users/lebrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lebrush/subscriptions","organizations_url":"https://api.github.com/users/lebrush/orgs","repos_url":"https://api.github.com/users/lebrush/repos","events_url":"https://api.github.com/users/lebrush/events{/privacy}","received_events_url":"https://api.github.com/users/lebrush/received_events","type":"User","site_admin":false},"body":"Might make sense, it's in a separate commit in any case :-) ","created_at":"2016-11-23T09:04:01Z","updated_at":"2016-11-23T09:04:01Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/6155#discussion_r89275476","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/89275476"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/6155#discussion_r89275476"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155","id":94859664,"html_url":"https://github.com/RIOT-OS/RIOT/pull/6155","diff_url":"https://github.com/RIOT-OS/RIOT/pull/6155.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/6155.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6155","number":6155,"state":"open","locked":false,"title":"Semaphore implementation without IPC","user":{"login":"lebrush","id":1437538,"avatar_url":"https://avatars.githubusercontent.com/u/1437538?v=3","gravatar_id":"","url":"https://api.github.com/users/lebrush","html_url":"https://github.com/lebrush","followers_url":"https://api.github.com/users/lebrush/followers","following_url":"https://api.github.com/users/lebrush/following{/other_user}","gists_url":"https://api.github.com/users/lebrush/gists{/gist_id}","starred_url":"https://api.github.com/users/lebrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lebrush/subscriptions","organizations_url":"https://api.github.com/users/lebrush/orgs","repos_url":"https://api.github.com/users/lebrush/repos","events_url":"https://api.github.com/users/lebrush/events{/privacy}","received_events_url":"https://api.github.com/users/lebrush/received_events","type":"User","site_admin":false},"body":"This is a working semaphore implementation using mutex and thread_flags. It seems to work fine but firstly this is a request for comments.\r\n\r\n(fix for #6151)","created_at":"2016-11-22T17:22:53Z","updated_at":"2016-11-23T09:04:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9204cf7a77a2d1f36ac24998f888c73b9debcf86","assignee":{"login":"miri64","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/miri64","html_url":"https://github.com/miri64","followers_url":"https://api.github.com/users/miri64/followers","following_url":"https://api.github.com/users/miri64/following{/other_user}","gists_url":"https://api.github.com/users/miri64/gists{/gist_id}","starred_url":"https://api.github.com/users/miri64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miri64/subscriptions","organizations_url":"https://api.github.com/users/miri64/orgs","repos_url":"https://api.github.com/users/miri64/repos","events_url":"https://api.github.com/users/miri64/events{/privacy}","received_events_url":"https://api.github.com/users/miri64/received_events","type":"User","site_admin":false},"assignees":[{"login":"miri64","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/miri64","html_url":"https://github.com/miri64","followers_url":"https://api.github.com/users/miri64/followers","following_url":"https://api.github.com/users/miri64/following{/other_user}","gists_url":"https://api.github.com/users/miri64/gists{/gist_id}","starred_url":"https://api.github.com/users/miri64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miri64/subscriptions","organizations_url":"https://api.github.com/users/miri64/orgs","repos_url":"https://api.github.com/users/miri64/repos","events_url":"https://api.github.com/users/miri64/events{/privacy}","received_events_url":"https://api.github.com/users/miri64/received_events","type":"User","site_admin":false},{"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":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/16","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202017.01","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/16/labels","id":2079772,"number":16,"title":"Release 2017.01","description":"","creator":{"login":"miri64","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/miri64","html_url":"https://github.com/miri64","followers_url":"https://api.github.com/users/miri64/followers","following_url":"https://api.github.com/users/miri64/following{/other_user}","gists_url":"https://api.github.com/users/miri64/gists{/gist_id}","starred_url":"https://api.github.com/users/miri64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miri64/subscriptions","organizations_url":"https://api.github.com/users/miri64/orgs","repos_url":"https://api.github.com/users/miri64/repos","events_url":"https://api.github.com/users/miri64/events{/privacy}","received_events_url":"https://api.github.com/users/miri64/received_events","type":"User","site_admin":false},"open_issues":252,"closed_issues":26,"state":"open","created_at":"2016-10-19T12:20:59Z","updated_at":"2016-11-22T17:30:49Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155/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/6155/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/7d5ab34b53c6ed8bc7532f9b5da7003365579030","head":{"label":"lebrush:sema-non-ipc","ref":"sema-non-ipc","sha":"7d5ab34b53c6ed8bc7532f9b5da7003365579030","user":{"login":"lebrush","id":1437538,"avatar_url":"https://avatars.githubusercontent.com/u/1437538?v=3","gravatar_id":"","url":"https://api.github.com/users/lebrush","html_url":"https://github.com/lebrush","followers_url":"https://api.github.com/users/lebrush/followers","following_url":"https://api.github.com/users/lebrush/following{/other_user}","gists_url":"https://api.github.com/users/lebrush/gists{/gist_id}","starred_url":"https://api.github.com/users/lebrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lebrush/subscriptions","organizations_url":"https://api.github.com/users/lebrush/orgs","repos_url":"https://api.github.com/users/lebrush/repos","events_url":"https://api.github.com/users/lebrush/events{/privacy}","received_events_url":"https://api.github.com/users/lebrush/received_events","type":"User","site_admin":false},"repo":{"id":26221916,"name":"RIOT","full_name":"lebrush/RIOT","owner":{"login":"lebrush","id":1437538,"avatar_url":"https://avatars.githubusercontent.com/u/1437538?v=3","gravatar_id":"","url":"https://api.github.com/users/lebrush","html_url":"https://github.com/lebrush","followers_url":"https://api.github.com/users/lebrush/followers","following_url":"https://api.github.com/users/lebrush/following{/other_user}","gists_url":"https://api.github.com/users/lebrush/gists{/gist_id}","starred_url":"https://api.github.com/users/lebrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lebrush/subscriptions","organizations_url":"https://api.github.com/users/lebrush/orgs","repos_url":"https://api.github.com/users/lebrush/repos","events_url":"https://api.github.com/users/lebrush/events{/privacy}","received_events_url":"https://api.github.com/users/lebrush/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lebrush/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/lebrush/RIOT","forks_url":"https://api.github.com/repos/lebrush/RIOT/forks","keys_url":"https://api.github.com/repos/lebrush/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lebrush/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lebrush/RIOT/teams","hooks_url":"https://api.github.com/repos/lebrush/RIOT/hooks","issue_events_url":"https://api.github.com/repos/lebrush/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/lebrush/RIOT/events","assignees_url":"https://api.github.com/repos/lebrush/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/lebrush/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/lebrush/RIOT/tags","blobs_url":"https://api.github.com/repos/lebrush/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lebrush/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lebrush/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/lebrush/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lebrush/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/lebrush/RIOT/languages","stargazers_url":"https://api.github.com/repos/lebrush/RIOT/stargazers","contributors_url":"https://api.github.com/repos/lebrush/RIOT/contributors","subscribers_url":"https://api.github.com/repos/lebrush/RIOT/subscribers","subscription_url":"https://api.github.com/repos/lebrush/RIOT/subscription","commits_url":"https://api.github.com/repos/lebrush/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/lebrush/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/lebrush/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/lebrush/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/lebrush/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/lebrush/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lebrush/RIOT/merges","archive_url":"https://api.github.com/repos/lebrush/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lebrush/RIOT/downloads","issues_url":"https://api.github.com/repos/lebrush/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/lebrush/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/lebrush/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/lebrush/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lebrush/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/lebrush/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/lebrush/RIOT/deployments","created_at":"2014-11-05T13:59:35Z","updated_at":"2015-12-01T15:18:52Z","pushed_at":"2016-11-23T08:59:46Z","git_url":"git://github.com/lebrush/RIOT.git","ssh_url":"git@github.com:lebrush/RIOT.git","clone_url":"https://github.com/lebrush/RIOT.git","svn_url":"https://github.com/lebrush/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":34270,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RIOT-OS:master","ref":"master","sha":"13ab6727591bcdccc1ac881b391ec10d50260ff2","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}","deployments_url":"https://api.github.com/repos/RIOT-OS/RIOT/deployments","created_at":"2012-12-29T20:38:40Z","updated_at":"2016-11-23T07:26:46Z","pushed_at":"2016-11-23T08:59:48Z","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":102083,"stargazers_count":994,"watchers_count":994,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":675,"mirror_url":null,"open_issues_count":514,"forks":675,"open_issues":514,"watchers":994,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/6155"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6155"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6155/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6155/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/6155/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/7d5ab34b53c6ed8bc7532f9b5da7003365579030"}}}}
{"actor":{"display_login":"lebrush"}}