{"action":"opened","issue":{"url":"https://api.github.com/repos/leaningtech/cheerpj-appletrunner/issues/18","repository_url":"https://api.github.com/repos/leaningtech/cheerpj-appletrunner","labels_url":"https://api.github.com/repos/leaningtech/cheerpj-appletrunner/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/leaningtech/cheerpj-appletrunner/issues/18/comments","events_url":"https://api.github.com/repos/leaningtech/cheerpj-appletrunner/issues/18/events","html_url":"https://github.com/leaningtech/cheerpj-appletrunner/issues/18","id":391641009,"node_id":"MDU6SXNzdWUzOTE2NDEwMDk=","number":18,"title":"About thread interupt","user":{"login":"jburse","id":5411487,"node_id":"MDQ6VXNlcjU0MTE0ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/5411487?v=4","gravatar_id":"","url":"https://api.github.com/users/jburse","html_url":"https://github.com/jburse","followers_url":"https://api.github.com/users/jburse/followers","following_url":"https://api.github.com/users/jburse/following{/other_user}","gists_url":"https://api.github.com/users/jburse/gists{/gist_id}","starred_url":"https://api.github.com/users/jburse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jburse/subscriptions","organizations_url":"https://api.github.com/users/jburse/orgs","repos_url":"https://api.github.com/users/jburse/repos","events_url":"https://api.github.com/users/jburse/events{/privacy}","received_events_url":"https://api.github.com/users/jburse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T10:13:07Z","updated_at":"2018-12-17T10:13:07Z","closed_at":null,"author_association":"NONE","body":"Dear Leaningtech,\r\n\r\nCould already figure out how to work around this issue https://github.com/leaningtech/cheerpj-appletrunner/issues/14 but there is a residual issue. Which I tried to verify that monitors are not interruptible. Pickeled my code as follows to show the problem:\r\n\r\n                while (ts.getBufferSize() == 0) {\r\n                    try {\r\n                        ts.wait(1000);\r\n                        System.err.println(\"timeout or notify\");\r\n                    } catch (InterruptedException x) {\r\n                        System.err.println(\"interrupt exception\");\r\n                        throw new InterruptedIOException();\r\n                    }\r\n                }"}}
{"actor":{"display_login":"jburse"}}