~eliasnaur/gio

ref: f24232dac52e gio/internal/cocoainit/cocoa_darwin.go -rw-r--r-- 417 bytes
f24232daElias Naur app/internal/wm: [X11] ignore zero-sized FrameEvents 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: Unlicense OR MIT

// Package cocoainit initializes support for multithreaded
// programs in Cocoa.
package cocoainit

/*
#cgo CFLAGS: -xobjective-c -fmodules -fobjc-arc
#import <Foundation/Foundation.h>

static inline void activate_cocoa_multithreading() {
    [[NSThread new] start];
}
#pragma GCC visibility push(hidden)
*/
import "C"

func init() {
	C.activate_cocoa_multithreading()
}