mono / gtk-sharp

Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono
http://www.mono-project.com/GtkSharp
Other
428 stars 140 forks source link

Ui thread check #178

Closed Therzok closed 7 years ago

Therzok commented 7 years ago

https://gist.github.com/Therzok/dd98f69572b8e1a4f204e63aead194e0

Therzok commented 7 years ago

The generator for properties only generates the MainThread check on setters, not getters, will add for getters if needed.

Therzok commented 7 years ago

I'm still not sure whether this should throw an exception or log a stacktrace, because this can cause guaranteed app breaks vs a random crasher in some specific concurrency case.

slluis commented 7 years ago

We can start with a log.

Therzok commented 7 years ago

Switched to logging. Merging as soon as build is green.