sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

LockOSThread #278

Closed c-smile closed 3 years ago

c-smile commented 3 years ago
  1. Windows shall be created in main GUI thread.
  2. GUI thread may have multiple windows shown at the same time so having Run() as an instance method is not correct, IMO.

I am not sure but it makes sense to consider this approach:

https://github.com/golang/go/wiki/LockOSThread

pravic commented 3 years ago

201 has suggested the same approach. We should probably do this.