{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/2855","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/2855/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/2855/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/2855/events","html_url":"https://github.com/dotnet/corefx/pull/2855","id":101524796,"number":2855,"title":"Support writing colored messages to console in a multi-threaded environment","user":{"login":"pallavit","id":10713359,"avatar_url":"https://avatars.githubusercontent.com/u/10713359?v=3","gravatar_id":"","url":"https://api.github.com/users/pallavit","html_url":"https://github.com/pallavit","followers_url":"https://api.github.com/users/pallavit/followers","following_url":"https://api.github.com/users/pallavit/following{/other_user}","gists_url":"https://api.github.com/users/pallavit/gists{/gist_id}","starred_url":"https://api.github.com/users/pallavit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pallavit/subscriptions","organizations_url":"https://api.github.com/users/pallavit/orgs","repos_url":"https://api.github.com/users/pallavit/repos","events_url":"https://api.github.com/users/pallavit/events{/privacy}","received_events_url":"https://api.github.com/users/pallavit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/2%20-%20In%20Progress","name":"2 - In Progress","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T22:39:03Z","updated_at":"2015-08-18T01:27:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/2855","html_url":"https://github.com/dotnet/corefx/pull/2855","diff_url":"https://github.com/dotnet/corefx/pull/2855.diff","patch_url":"https://github.com/dotnet/corefx/pull/2855.patch"},"body":"Fix #2808  \r\n\r\nIn the System.Console portable library SyncTextReader/SyncTextWriter (the reader and writer used by the Console) locked on a private lock object which prevented users from writing colored console messages in sync with non-colored writers. Note this behavior was a regression from the Desktop\r\nwhere this could be achieved by locking against Console.Out which resulted in locking the writer APIs since the SyncTextWriter internally locked on itself.\r\n\r\nAlthough this approach comes from an implementation detail, the scenario is useful and there exists no work-around for it in the portable library.So, moving back to the earlier implementation, where the readers and writers locked against themselves instead of a private object."},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/132022125","html_url":"https://github.com/dotnet/corefx/pull/2855#issuecomment-132022125","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/2855","id":132022125,"user":{"login":"stephentoub","id":2642209,"avatar_url":"https://avatars.githubusercontent.com/u/2642209?v=3","gravatar_id":"","url":"https://api.github.com/users/stephentoub","html_url":"https://github.com/stephentoub","followers_url":"https://api.github.com/users/stephentoub/followers","following_url":"https://api.github.com/users/stephentoub/following{/other_user}","gists_url":"https://api.github.com/users/stephentoub/gists{/gist_id}","starred_url":"https://api.github.com/users/stephentoub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephentoub/subscriptions","organizations_url":"https://api.github.com/users/stephentoub/orgs","repos_url":"https://api.github.com/users/stephentoub/repos","events_url":"https://api.github.com/users/stephentoub/events{/privacy}","received_events_url":"https://api.github.com/users/stephentoub/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T01:27:56Z","updated_at":"2015-08-18T01:27:56Z","body":"With a comment and a test as @akoeplinger suggests, LGTM."}}