{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8016","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8016/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8016/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8016/events","html_url":"https://github.com/bitcoin/bitcoin/pull/8016","id":153410729,"number":8016,"title":"Fix multithread CScheduler and reenable test","user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Tests","name":"Tests","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-05-06T09:10:22Z","updated_at":"2016-05-10T09:45:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/8016","html_url":"https://github.com/bitcoin/bitcoin/pull/8016","diff_url":"https://github.com/bitcoin/bitcoin/pull/8016.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/8016.patch"},"body":"This fixes the deadlock in the `CScheduler` when there are other `serviceQueue`s waiting for the new task to be added to the `taskQueue`, but `schedule` notifies only one of them who processes it and ends. And the other ones get stucked waiting for the new task which doesn't come in at all.\r\n\r\nHard to reproduce, see #6540 for the discussion.\r\n\r\nFixes #6540."},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/218109455","html_url":"https://github.com/bitcoin/bitcoin/pull/8016#issuecomment-218109455","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/8016","id":218109455,"user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T09:45:21Z","updated_at":"2016-05-10T09:45:21Z","body":"No. I'm think about writing another test that will use the exception calls, but not here and not now, sorry."}}