5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERTHREADSYNCHRONIZER_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERTHREADSYNCHRONIZER_H_
8 #import <Cocoa/Cocoa.h>
22 - (nullable instancetype)
init;
27 - (void)beginResizeForView:(int64_t)viewId
29 notify:(nonnull dispatch_block_t)notify;
40 - (void)performCommitForView:(int64_t)viewId
42 notify:(nonnull dispatch_block_t)notify;
49 - (void)performOnPlatformThread:(nonnull dispatch_block_t)block;
58 - (void)registerView:(int64_t)viewId;
65 - (void)deregisterView:(int64_t)viewId;
82 - (nullable instancetype)initWithMainQueue:(nonnull dispatch_queue_t)queue;
100 - (BOOL)isWaitingWhenMutexIsAvailable;
106 - (void)blockUntilFrameAvailable;
110 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERTHREADSYNCHRONIZER_H_