From bbff3d4f6211d8bdd13173d1c9329a3ec841fc8f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 11 Feb 2014 18:32:07 -0500 Subject: [PATCH] Locked the Windows message loop goroutine to the OS thread. --- uitask_windows.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uitask_windows.go b/uitask_windows.go index df04d2e..c0b6535 100644 --- a/uitask_windows.go +++ b/uitask_windows.go @@ -48,6 +48,8 @@ var ( ) func msgloop() { + runtime.LockOSThread() + var msg struct { Hwnd _HWND Message uint32