Skip to content

Commit

Permalink
Merge pull request #763 from gucio321/mainthread-for-windows-update
Browse files Browse the repository at this point in the history
mainthread: disable on windows
  • Loading branch information
gucio321 authored Feb 18, 2024
2 parents 67bf4a3 + ec81b09 commit 6693b67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainthread_all.go
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

Expand Down
13 changes: 13 additions & 0 deletions mainthread_windows.go
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()
}

0 comments on commit 6693b67

Please sign in to comment.