mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
2059862416
The only reason for separate files is Objective-C callbacks into Go, or when the Go side is common, yet the Objective-C side differs from macOS to iOS. Signed-off-by: Elias Naur <mail@eliasnaur.com>
13 lines
225 B
Objective-C
13 lines
225 B
Objective-C
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
@import Dispatch;
|
|
@import Foundation;
|
|
|
|
#include "_cgo_export.h"
|
|
|
|
void gio_wakeupMainThread(void) {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
gio_dispatchMainFuncs();
|
|
});
|
|
}
|