{"action":"created","issue":{"url":"https://api.github.com/repos/mbedmicro/mbed/issues/2189","repository_url":"https://api.github.com/repos/mbedmicro/mbed","labels_url":"https://api.github.com/repos/mbedmicro/mbed/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/mbedmicro/mbed/issues/2189/comments","events_url":"https://api.github.com/repos/mbedmicro/mbed/issues/2189/events","html_url":"https://github.com/mbedmicro/mbed/pull/2189","id":166180065,"number":2189,"title":"[rtos] Add default constructor for Semaphore","user":{"login":"geky","id":1075160,"avatar_url":"https://avatars.githubusercontent.com/u/1075160?v=3","gravatar_id":"","url":"https://api.github.com/users/geky","html_url":"https://github.com/geky","followers_url":"https://api.github.com/users/geky/followers","following_url":"https://api.github.com/users/geky/following{/other_user}","gists_url":"https://api.github.com/users/geky/gists{/gist_id}","starred_url":"https://api.github.com/users/geky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geky/subscriptions","organizations_url":"https://api.github.com/users/geky/orgs","repos_url":"https://api.github.com/users/geky/repos","events_url":"https://api.github.com/users/geky/events{/privacy}","received_events_url":"https://api.github.com/users/geky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-18T20:01:07Z","updated_at":"2016-07-19T15:50:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mbedmicro/mbed/pulls/2189","html_url":"https://github.com/mbedmicro/mbed/pull/2189","diff_url":"https://github.com/mbedmicro/mbed/pull/2189.diff","patch_url":"https://github.com/mbedmicro/mbed/pull/2189.patch"},"body":"Currently Semaphore can not be instantiated without an explicit count as a constructor argument. This limits where Semaphores can be declared and requires explicit initialization in several annoying places, such as in member variables and SingletonPtr targets.\r\n\r\nThis adds a default count of 0, which has shown to be the most common initial value used for semaphores.\r\n\r\ncc @0xc0170, @c1728p9 "},"comment":{"url":"https://api.github.com/repos/mbedmicro/mbed/issues/comments/233677051","html_url":"https://github.com/mbedmicro/mbed/pull/2189#issuecomment-233677051","issue_url":"https://api.github.com/repos/mbedmicro/mbed/issues/2189","id":233677051,"user":{"login":"0xc0170","id":2963726,"avatar_url":"https://avatars.githubusercontent.com/u/2963726?v=3","gravatar_id":"","url":"https://api.github.com/users/0xc0170","html_url":"https://github.com/0xc0170","followers_url":"https://api.github.com/users/0xc0170/followers","following_url":"https://api.github.com/users/0xc0170/following{/other_user}","gists_url":"https://api.github.com/users/0xc0170/gists{/gist_id}","starred_url":"https://api.github.com/users/0xc0170/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xc0170/subscriptions","organizations_url":"https://api.github.com/users/0xc0170/orgs","repos_url":"https://api.github.com/users/0xc0170/repos","events_url":"https://api.github.com/users/0xc0170/events{/privacy}","received_events_url":"https://api.github.com/users/0xc0170/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T15:50:16Z","updated_at":"2016-07-19T15:50:16Z","body":"Thanks for providing more info\r\n\r\nLGTM"}}
{"actor":{"display_login":"0xc0170"}}