-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in reference to #735 (comment) we have no mainthread library that works on windows. Due to this fact I think that the best solution is to disable mainthread completely for winows until we find some working solution. I'll create an issue about this as soon as this change is merged to master
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build !darwin | ||
// +build !darwin | ||
//go:build !darwin && !windows | ||
// +build !darwin,!windows | ||
|
||
package giu | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build windows | ||
// +build windows | ||
|
||
package giu | ||
|
||
// TODO: I have no working mainthread library for windows. | ||
// - this one for macOS crashes app immediately | ||
// - this for linux (and everything else) freezes after a few seconds | ||
// | ||
// With no mianthread support this at least runs sometimes. Just keep your giu calls in one thread and everything should work. | ||
func mainthreadCallPlatform(c func()) { | ||
c() | ||
} |