rthornton128 / goncurses

NCurses Library for Go
Other
383 stars 51 forks source link

Thread safety #48

Closed plazmakeks closed 4 years ago

plazmakeks commented 5 years ago

Hi,

I've read that ncurses is thread safe, or atleast has thread safe capabilities, by version 5.7. Is that already included/used in goncurses or is there maybe any way to determine that or switch it on? Reason I'm asking is that i face some visual noise in my application which I relate to a concurrency problem and I'd like to get this some how fixed.

Best, Henning

rthornton128 commented 5 years ago

It is not implemented and I don't currently have any plans to do so. I'm happy to accept pull requests if someone wants to implement it, however.

That said, Go has build-in mechanisms and the sync standard library to help running concurrent code. See https://github.com/rthornton128/goncurses/blob/master/examples/concurrency/concur.go for a trivial example.

rthornton128 commented 4 years ago

Closing due to inactivity.