diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-11 16:12:54 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-11 16:12:54 -0400 |
| commit | 0f75ebb5fa7a12bd1df26622ed3f5544a9d1d32b (patch) | |
| tree | 8668b188572b47e064b173b42fdf04061643dd51 /main.go | |
| parent | dc108a5d4dc79fa680fdad596e0b96dab3257895 (diff) | |
First step toward alpha 4: we no longer need the Windows resource trick.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -27,6 +27,7 @@ import "C" // make sure main() runs on the first thread created by the OS // if main() calls Main(), things will just work on macOS, where the first thread created by the OS is the only thread allowed to be the main GUI thread // we might as well lock the OS thread for the other platforms here too (though on those it doesn't matter *which* thread we lock to) +// TODO describe the source of this trick func init() { runtime.LockOSThread() } |
