{"comment":{"url":"https://api.github.com/repos/Kalycito-open-automation/openPOWERLINK_V2/comments/13136278","html_url":"https://github.com/Kalycito-open-automation/openPOWERLINK_V2/commit/20b52117230277d70f36661c3aef4975cedc8b7f#commitcomment-13136278","id":13136278,"user":{"login":"zelenkaj","id":3468920,"avatar_url":"https://avatars.githubusercontent.com/u/3468920?v=3","gravatar_id":"","url":"https://api.github.com/users/zelenkaj","html_url":"https://github.com/zelenkaj","followers_url":"https://api.github.com/users/zelenkaj/followers","following_url":"https://api.github.com/users/zelenkaj/following{/other_user}","gists_url":"https://api.github.com/users/zelenkaj/gists{/gist_id}","starred_url":"https://api.github.com/users/zelenkaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelenkaj/subscriptions","organizations_url":"https://api.github.com/users/zelenkaj/orgs","repos_url":"https://api.github.com/users/zelenkaj/repos","events_url":"https://api.github.com/users/zelenkaj/events{/privacy}","received_events_url":"https://api.github.com/users/zelenkaj/received_events","type":"User","site_admin":false},"position":19,"line":302,"path":"contrib/dualprocshm/src/dualprocshm-pcp.c","commit_id":"20b52117230277d70f36661c3aef4975cedc8b7f","created_at":"2015-09-09T13:33:50Z","updated_at":"2015-09-09T13:33:50Z","body":"Please refer to https://en.wikipedia.org/wiki/Peterson's_algorithm (please add this link to the file's header, thx!)\r\n\r\nYes, you can directly use the `procInstance_p` value and write it to the `turn` field, and again check the turn field against the `procInstance_p` - the value doesn't matter (0 or 1 or ... as in the wiki example) but it needs to be unique!\r\nHowever, you need to check the other's flag!!! So, the first processor checks the second's processor flag if it is TRUE."}}