{"action":"opened","number":2331,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2331","id":79627979,"html_url":"https://github.com/ARMmbed/mbed-os/pull/2331","diff_url":"https://github.com/ARMmbed/mbed-os/pull/2331.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/2331.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2331","number":2331,"state":"open","locked":false,"title":"Fix intermittent Thread::join bug","user":{"login":"c1728p9","id":2916772,"avatar_url":"https://avatars.githubusercontent.com/u/2916772?v=3","gravatar_id":"","url":"https://api.github.com/users/c1728p9","html_url":"https://github.com/c1728p9","followers_url":"https://api.github.com/users/c1728p9/followers","following_url":"https://api.github.com/users/c1728p9/following{/other_user}","gists_url":"https://api.github.com/users/c1728p9/gists{/gist_id}","starred_url":"https://api.github.com/users/c1728p9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c1728p9/subscriptions","organizations_url":"https://api.github.com/users/c1728p9/orgs","repos_url":"https://api.github.com/users/c1728p9/repos","events_url":"https://api.github.com/users/c1728p9/events{/privacy}","received_events_url":"https://api.github.com/users/c1728p9/received_events","type":"User","site_admin":false},"body":"The function Thread::join determines if the thread the object it\r\nrepresents has terminated by polling that threads TCB. This can\r\nlead to problems since the RTOS frees the thread's TCB as soon as\r\nthe thread completes execution.\r\n\r\nThis patch updates the function Thread::join to use a semaphore to\r\ndetermine when the thread finishes. This both avoids polling and\r\nprevents a freed TCB from being accessed.","created_at":"2016-08-01T20:08:57Z","updated_at":"2016-08-01T20:08:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2331/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2331/comments","review_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2331/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/4e6e2b3cbc85d528826009548a83b35ffbce9248","head":{"label":"c1728p9:fix_thread_join","ref":"fix_thread_join","sha":"4e6e2b3cbc85d528826009548a83b35ffbce9248","user":{"login":"c1728p9","id":2916772,"avatar_url":"https://avatars.githubusercontent.com/u/2916772?v=3","gravatar_id":"","url":"https://api.github.com/users/c1728p9","html_url":"https://github.com/c1728p9","followers_url":"https://api.github.com/users/c1728p9/followers","following_url":"https://api.github.com/users/c1728p9/following{/other_user}","gists_url":"https://api.github.com/users/c1728p9/gists{/gist_id}","starred_url":"https://api.github.com/users/c1728p9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c1728p9/subscriptions","organizations_url":"https://api.github.com/users/c1728p9/orgs","repos_url":"https://api.github.com/users/c1728p9/repos","events_url":"https://api.github.com/users/c1728p9/events{/privacy}","received_events_url":"https://api.github.com/users/c1728p9/received_events","type":"User","site_admin":false},"repo":{"id":47909954,"name":"mbed","full_name":"c1728p9/mbed","owner":{"login":"c1728p9","id":2916772,"avatar_url":"https://avatars.githubusercontent.com/u/2916772?v=3","gravatar_id":"","url":"https://api.github.com/users/c1728p9","html_url":"https://github.com/c1728p9","followers_url":"https://api.github.com/users/c1728p9/followers","following_url":"https://api.github.com/users/c1728p9/following{/other_user}","gists_url":"https://api.github.com/users/c1728p9/gists{/gist_id}","starred_url":"https://api.github.com/users/c1728p9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c1728p9/subscriptions","organizations_url":"https://api.github.com/users/c1728p9/orgs","repos_url":"https://api.github.com/users/c1728p9/repos","events_url":"https://api.github.com/users/c1728p9/events{/privacy}","received_events_url":"https://api.github.com/users/c1728p9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/c1728p9/mbed","description":"mbed libraries and tools (Classic). For mbed OS, look here: https://www.mbed.com/en/development/software/mbed-os/","fork":true,"url":"https://api.github.com/repos/c1728p9/mbed","forks_url":"https://api.github.com/repos/c1728p9/mbed/forks","keys_url":"https://api.github.com/repos/c1728p9/mbed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c1728p9/mbed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c1728p9/mbed/teams","hooks_url":"https://api.github.com/repos/c1728p9/mbed/hooks","issue_events_url":"https://api.github.com/repos/c1728p9/mbed/issues/events{/number}","events_url":"https://api.github.com/repos/c1728p9/mbed/events","assignees_url":"https://api.github.com/repos/c1728p9/mbed/assignees{/user}","branches_url":"https://api.github.com/repos/c1728p9/mbed/branches{/branch}","tags_url":"https://api.github.com/repos/c1728p9/mbed/tags","blobs_url":"https://api.github.com/repos/c1728p9/mbed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c1728p9/mbed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c1728p9/mbed/git/refs{/sha}","trees_url":"https://api.github.com/repos/c1728p9/mbed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c1728p9/mbed/statuses/{sha}","languages_url":"https://api.github.com/repos/c1728p9/mbed/languages","stargazers_url":"https://api.github.com/repos/c1728p9/mbed/stargazers","contributors_url":"https://api.github.com/repos/c1728p9/mbed/contributors","subscribers_url":"https://api.github.com/repos/c1728p9/mbed/subscribers","subscription_url":"https://api.github.com/repos/c1728p9/mbed/subscription","commits_url":"https://api.github.com/repos/c1728p9/mbed/commits{/sha}","git_commits_url":"https://api.github.com/repos/c1728p9/mbed/git/commits{/sha}","comments_url":"https://api.github.com/repos/c1728p9/mbed/comments{/number}","issue_comment_url":"https://api.github.com/repos/c1728p9/mbed/issues/comments{/number}","contents_url":"https://api.github.com/repos/c1728p9/mbed/contents/{+path}","compare_url":"https://api.github.com/repos/c1728p9/mbed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c1728p9/mbed/merges","archive_url":"https://api.github.com/repos/c1728p9/mbed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c1728p9/mbed/downloads","issues_url":"https://api.github.com/repos/c1728p9/mbed/issues{/number}","pulls_url":"https://api.github.com/repos/c1728p9/mbed/pulls{/number}","milestones_url":"https://api.github.com/repos/c1728p9/mbed/milestones{/number}","notifications_url":"https://api.github.com/repos/c1728p9/mbed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c1728p9/mbed/labels{/name}","releases_url":"https://api.github.com/repos/c1728p9/mbed/releases{/id}","deployments_url":"https://api.github.com/repos/c1728p9/mbed/deployments","created_at":"2015-12-13T07:22:34Z","updated_at":"2016-06-14T11:29:08Z","pushed_at":"2016-08-01T20:08:39Z","git_url":"git://github.com/c1728p9/mbed.git","ssh_url":"git@github.com:c1728p9/mbed.git","clone_url":"https://github.com/c1728p9/mbed.git","svn_url":"https://github.com/c1728p9/mbed","homepage":"","size":59847,"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":"ARMmbed:master","ref":"master","sha":"4b506280eb4d34b3ed0e5aa82600d478e8f4ea1c","user":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars.githubusercontent.com/u/8916057?v=3","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"repo":{"id":8270972,"name":"mbed-os","full_name":"ARMmbed/mbed-os","owner":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars.githubusercontent.com/u/8916057?v=3","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARMmbed/mbed-os","description":null,"fork":false,"url":"https://api.github.com/repos/ARMmbed/mbed-os","forks_url":"https://api.github.com/repos/ARMmbed/mbed-os/forks","keys_url":"https://api.github.com/repos/ARMmbed/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARMmbed/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARMmbed/mbed-os/teams","hooks_url":"https://api.github.com/repos/ARMmbed/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/events","assignees_url":"https://api.github.com/repos/ARMmbed/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/ARMmbed/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/tags","blobs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/ARMmbed/mbed-os/languages","stargazers_url":"https://api.github.com/repos/ARMmbed/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/ARMmbed/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscription","commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARMmbed/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/ARMmbed/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARMmbed/mbed-os/merges","archive_url":"https://api.github.com/repos/ARMmbed/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARMmbed/mbed-os/downloads","issues_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/ARMmbed/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/ARMmbed/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/ARMmbed/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/ARMmbed/mbed-os/deployments","created_at":"2013-02-18T15:23:11Z","updated_at":"2016-08-01T15:32:24Z","pushed_at":"2016-08-01T20:08:57Z","git_url":"git://github.com/ARMmbed/mbed-os.git","ssh_url":"git@github.com:ARMmbed/mbed-os.git","clone_url":"https://github.com/ARMmbed/mbed-os.git","svn_url":"https://github.com/ARMmbed/mbed-os","homepage":"","size":69760,"stargazers_count":690,"watchers_count":690,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":694,"mirror_url":null,"open_issues_count":299,"forks":694,"open_issues":299,"watchers":690,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2331"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/2331"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2331"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2331/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2331/comments"},"review_comment":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2331/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/4e6e2b3cbc85d528826009548a83b35ffbce9248"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":12,"changed_files":2}}
{"actor":{"display_login":"c1728p9"}}