Timeline for Thread-safe console for C#
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 8, 2020 at 19:19 | vote | accept | AWhiteFox | ||
Dec 29, 2019 at 11:25 | comment | added | AWhiteFox |
I don't know if that's your intent or not. Yes, I've done it intentionally. I'm giving up a lock every time to allow threads write to the console while the reading thread is waiting for a key to be pressed. I'm also passing true to Console.ReadKey method to avoid it from writing pressed key to the console immediately.
|
|
Dec 29, 2019 at 3:33 | history | answered | CharlesNRice | CC BY-SA 4.0 |