{"action":"closed","issue":{"url":"https://api.github.com/repos/ARM-software/CMSIS/issues/81","repository_url":"https://api.github.com/repos/ARM-software/CMSIS","labels_url":"https://api.github.com/repos/ARM-software/CMSIS/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/ARM-software/CMSIS/issues/81/comments","events_url":"https://api.github.com/repos/ARM-software/CMSIS/issues/81/events","html_url":"https://github.com/ARM-software/CMSIS/issues/81","id":148623324,"number":81,"title":"CMSIS RTOS API v2: osEventFlagsWait()/osThreadFlagsWait() return type inconsistent with other blocking calls","user":{"login":"ilg-ul","id":362732,"avatar_url":"https://avatars.githubusercontent.com/u/362732?v=3","gravatar_id":"","url":"https://api.github.com/users/ilg-ul","html_url":"https://github.com/ilg-ul","followers_url":"https://api.github.com/users/ilg-ul/followers","following_url":"https://api.github.com/users/ilg-ul/following{/other_user}","gists_url":"https://api.github.com/users/ilg-ul/gists{/gist_id}","starred_url":"https://api.github.com/users/ilg-ul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilg-ul/subscriptions","organizations_url":"https://api.github.com/users/ilg-ul/orgs","repos_url":"https://api.github.com/users/ilg-ul/repos","events_url":"https://api.github.com/users/ilg-ul/events{/privacy}","received_events_url":"https://api.github.com/users/ilg-ul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T10:30:18Z","updated_at":"2016-04-15T12:15:29Z","closed_at":"2016-04-15T12:15:29Z","body":"Most blocking calls return a status code, usually ok or timeout.\r\n\r\nIt is not clear how you can differentiate the ok from timeout, in case of the flags functions, but it is inconsistent.\r\n\r\nIn [CMSIS++](http://micro-os-plus.github.io/cmsis-plus/), all blocking functions return a consistent status code, and the output flags are passed via a pointer parameter.\r\n\r\nhttp://micro-os-plus.github.io/reference/cmsis-plus/classos_1_1rtos_1_1_event__flags.html\r\n\r\nSuggestion:\r\n\r\n- change the return type to a status code and add a pointer parameter for the output flags\r\n"}}