#import <FlutterThreadSynchronizer.h>
Instance Methods | |
(nullable instancetype) | - initWithMainQueue: |
(BOOL) | - isWaitingWhenMutexIsAvailable |
(void) | - blockUntilFrameAvailable |
Definition at line 78 of file FlutterThreadSynchronizer.h.
- (void) blockUntilFrameAvailable |
Blocks current thread until there is frame available. Used in FlutterEngineTest.
Extends class FlutterThreadSynchronizer.
- (nullable instancetype) initWithMainQueue: | (nonnull dispatch_queue_t) | queue |
Creates a FlutterThreadSynchronizer that uses the specified queue as the platform thread.
Extends class FlutterThreadSynchronizer.
- (BOOL) isWaitingWhenMutexIsAvailable |
Blocks current thread until the mutex is available, then return whether the synchronizer is waiting for a correct commit during resizing.
After calling an operation of the thread synchronizer, call this method, and when it returns, the thread synchronizer can be at one of the following 3 states:
By eliminating the 1st case (such as using the notify callback), we can use this return value to decide whether the synchronizer is in case 2 or case 3, that is whether the resizing is blocked by a mismatching commit.
Extends class FlutterThreadSynchronizer.