{"action":"created","issue":{"url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/255","labels_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/255/comments","events_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/255/events","html_url":"https://github.com/MRtrix3/mrtrix3/issues/255","id":75815803,"number":255,"title":"tckmap hang on Windows","user":{"login":"Lestropie","id":5637955,"avatar_url":"https://avatars.githubusercontent.com/u/5637955?v=3","gravatar_id":"","url":"https://api.github.com/users/Lestropie","html_url":"https://github.com/Lestropie","followers_url":"https://api.github.com/users/Lestropie/followers","following_url":"https://api.github.com/users/Lestropie/following{/other_user}","gists_url":"https://api.github.com/users/Lestropie/gists{/gist_id}","starred_url":"https://api.github.com/users/Lestropie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lestropie/subscriptions","organizations_url":"https://api.github.com/users/Lestropie/orgs","repos_url":"https://api.github.com/users/Lestropie/repos","events_url":"https://api.github.com/users/Lestropie/events{/privacy}","received_events_url":"https://api.github.com/users/Lestropie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MRtrix3/mrtrix3/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-05-13T02:29:48Z","updated_at":"2015-05-18T12:46:59Z","closed_at":null,"body":"On my Windows machine, `tckmap` is hanging at random percentage markers.\r\n* Percentage at which it hangs changes every time, or sometimes it completes without issue.\r\n* Doesn't occur in debug mode.\r\n* Not fixed using `-quiet`.\r\n* Fixed using `-nthreads 0` or `-nthreads 1`; seems to be more frequent with more threads than less."},"comment":{"url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/comments/103049043","html_url":"https://github.com/MRtrix3/mrtrix3/issues/255#issuecomment-103049043","issue_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/255","id":103049043,"user":{"login":"jdtournier","id":3221000,"avatar_url":"https://avatars.githubusercontent.com/u/3221000?v=3","gravatar_id":"","url":"https://api.github.com/users/jdtournier","html_url":"https://github.com/jdtournier","followers_url":"https://api.github.com/users/jdtournier/followers","following_url":"https://api.github.com/users/jdtournier/following{/other_user}","gists_url":"https://api.github.com/users/jdtournier/gists{/gist_id}","starred_url":"https://api.github.com/users/jdtournier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdtournier/subscriptions","organizations_url":"https://api.github.com/users/jdtournier/orgs","repos_url":"https://api.github.com/users/jdtournier/repos","events_url":"https://api.github.com/users/jdtournier/events{/privacy}","received_events_url":"https://api.github.com/users/jdtournier/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T12:46:59Z","updated_at":"2015-05-18T12:46:59Z","body":"Sounds a bit odd... \r\n\r\nNo commands lying around, I'm afraid, but you might find some in the git history (although they would have since been deleted, so not easy to find). But all it was was a few no-op operators passing lightweights objects around - basically going to maximum contention to get things to fall over as much as possible.\r\n\r\nAs to your last point, I was a bit perplexed by that statement too, but reading it again, it says: \r\n\r\n> The notifying thread does not need to **hold** the lock on the same mutex as the one held by the waiting thread(s);\r\n\r\n(emphasis mine). Looks like we don't want to be _holding_ the lock when calling `notify_one()` (which we don't), but it's otherwise OK - unless we're going to lock it again immediately after. But since both reader & writer need to access the same structure, they really do need to use the same mutex..."}}