{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7038","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7038/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7038/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7038/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/7038","id":327116510,"node_id":"MDU6SXNzdWUzMjcxMTY1MTA=","number":7038,"title":"Mutex, Lock Guards and C++11 Question","user":{"login":"mattbrown015","id":26009918,"node_id":"MDQ6VXNlcjI2MDA5OTE4","avatar_url":"https://avatars0.githubusercontent.com/u/26009918?v=4","gravatar_id":"","url":"https://api.github.com/users/mattbrown015","html_url":"https://github.com/mattbrown015","followers_url":"https://api.github.com/users/mattbrown015/followers","following_url":"https://api.github.com/users/mattbrown015/following{/other_user}","gists_url":"https://api.github.com/users/mattbrown015/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbrown015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbrown015/subscriptions","organizations_url":"https://api.github.com/users/mattbrown015/orgs","repos_url":"https://api.github.com/users/mattbrown015/repos","events_url":"https://api.github.com/users/mattbrown015/events{/privacy}","received_events_url":"https://api.github.com/users/mattbrown015/received_events","type":"User","site_admin":false},"labels":[{"id":515345118,"node_id":"MDU6TGFiZWw1MTUzNDUxMTg=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/component:%20rtos","name":"component: rtos","color":"5319e7","default":false},{"id":427713129,"node_id":"MDU6TGFiZWw0Mjc3MTMxMjk=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/mirrored","name":"mirrored","color":"ededed","default":false},{"id":28847983,"node_id":"MDU6TGFiZWwyODg0Nzk4Mw==","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20question","name":"type: question","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-28T20:59:52Z","updated_at":"2018-06-01T15:50:48Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nI was thinking about using `Mutex` to protect some global state and musing how best to use it.\r\n\r\nI didn't see any obvious reference to lock guards in the `Mutex` documentation but I did find `TESTS\\mbedmicro-rtos-mbed\\threads\\LockGuard.h`.\r\n\r\nAt the present my best plan is to do something for myself similar to `LockGuard.h`.\r\n\r\nI was wondering if there was a reason why a lock guard hasn't been implemented along with `Mutex`?\r\n\r\nAnother option would be create a profile and switch to C++11.  I don't understand the ramifications of using C++11.\r\n\r\n### Issue request type\r\n\r\n[X] Question  \r\n[ ] Enhancement  \r\n[ ] Bug"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/393923069","html_url":"https://github.com/ARMmbed/mbed-os/issues/7038#issuecomment-393923069","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7038","id":393923069,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkyMzA2OQ==","user":{"login":"ciarmcom","id":14747535,"node_id":"MDQ6VXNlcjE0NzQ3NTM1","avatar_url":"https://avatars0.githubusercontent.com/u/14747535?v=4","gravatar_id":"","url":"https://api.github.com/users/ciarmcom","html_url":"https://github.com/ciarmcom","followers_url":"https://api.github.com/users/ciarmcom/followers","following_url":"https://api.github.com/users/ciarmcom/following{/other_user}","gists_url":"https://api.github.com/users/ciarmcom/gists{/gist_id}","starred_url":"https://api.github.com/users/ciarmcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciarmcom/subscriptions","organizations_url":"https://api.github.com/users/ciarmcom/orgs","repos_url":"https://api.github.com/users/ciarmcom/repos","events_url":"https://api.github.com/users/ciarmcom/events{/privacy}","received_events_url":"https://api.github.com/users/ciarmcom/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:50:48Z","updated_at":"2018-06-01T15:50:48Z","author_association":"MEMBER","body":"ARM Internal Ref: MBOTRIAGE-11"}}
{"actor":{"display_login":"ciarmcom"}}