-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #763 from gucio321/mainthread-for-windows-update
mainthread: disable on windows
- 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() | ||
} |