{"action":"created","issue":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1878","repository_url":"https://api.github.com/repos/magic-lang/ooc-kean","labels_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1878/labels{/name}","comments_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1878/comments","events_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1878/events","html_url":"https://github.com/magic-lang/ooc-kean/pull/1878","id":172431321,"number":1878,"title":"Debug deadlock","user":{"login":"christopherlagerhult","id":16774673,"avatar_url":"https://avatars.githubusercontent.com/u/16774673?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherlagerhult","html_url":"https://github.com/christopherlagerhult","followers_url":"https://api.github.com/users/christopherlagerhult/followers","following_url":"https://api.github.com/users/christopherlagerhult/following{/other_user}","gists_url":"https://api.github.com/users/christopherlagerhult/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherlagerhult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherlagerhult/subscriptions","organizations_url":"https://api.github.com/users/christopherlagerhult/orgs","repos_url":"https://api.github.com/users/christopherlagerhult/repos","events_url":"https://api.github.com/users/christopherlagerhult/events{/privacy}","received_events_url":"https://api.github.com/users/christopherlagerhult/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magic-lang/ooc-kean/labels/peer%20review","name":"peer review","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-22T11:37:45Z","updated_at":"2016-08-26T09:41:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1878","html_url":"https://github.com/magic-lang/ooc-kean/pull/1878","diff_url":"https://github.com/magic-lang/ooc-kean/pull/1878.diff","patch_url":"https://github.com/magic-lang/ooc-kean/pull/1878.patch"},"body":"Using the version(debugDeadlock) flag will now raise an error when a promise/mutexunix takes \"too long\" to finish.\r\nNotes: \r\n\r\n- ~~Mutexes are ignored since Android uses ``std::mutex`` instead of our ``Mutex.ooc``.~~\r\n- A timer is used for the timeout check since  ``_Synchronizer _state`` is currently very unreliable:  ``_Synchronizer`` objects created by ``Threadpool`` have tasks whose state are changed instead. ``OutputFrame`` seems to ignore the state variable as it uses a ``WaitCondition`` for the actual wait.\r\n- ~~The timer uses ticks rather than seconds for the timeout due to the fact that ``_Task wait()`` is implemented that way.~~\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/comments/242682197","html_url":"https://github.com/magic-lang/ooc-kean/pull/1878#issuecomment-242682197","issue_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1878","id":242682197,"user":{"login":"christopherlagerhult","id":16774673,"avatar_url":"https://avatars.githubusercontent.com/u/16774673?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherlagerhult","html_url":"https://github.com/christopherlagerhult","followers_url":"https://api.github.com/users/christopherlagerhult/followers","following_url":"https://api.github.com/users/christopherlagerhult/following{/other_user}","gists_url":"https://api.github.com/users/christopherlagerhult/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherlagerhult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherlagerhult/subscriptions","organizations_url":"https://api.github.com/users/christopherlagerhult/orgs","repos_url":"https://api.github.com/users/christopherlagerhult/repos","events_url":"https://api.github.com/users/christopherlagerhult/events{/privacy}","received_events_url":"https://api.github.com/users/christopherlagerhult/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T09:41:38Z","updated_at":"2016-08-26T09:41:38Z","body":"Waiting for #1885 before continuing"}}
{"actor":{"display_login":"christopherlagerhult"}}