~eliasnaur/gio

ref: 284659d3eac9 gio/app/internal/cocoainit/cocoa_darwin.go -rw-r--r-- 417 bytes
284659d3Elias Naur gpu/shaders: [compute] remove unused command from kernel4 a month 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()
}