We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190b306 commit ad2afa5Copy full SHA for ad2afa5
bridge/foundation/shared_ui_command.cc
@@ -44,6 +44,10 @@ void* SharedUICommand::data() {
44
}
45
46
uint32_t SharedUICommand::kindFlag() {
47
+ // simply spin wait for the swapBuffers to finish.
48
+ while (is_blocking_writing_.load(std::memory_order::memory_order_acquire)) {
49
+ }
50
+
51
return active_buffer->kindFlag();
52
53
@@ -54,6 +58,9 @@ int64_t SharedUICommand::size() {
54
58
55
59
// third called by dart to clear commands.
56
60
void SharedUICommand::clear() {
61
62
63
57
64
active_buffer->clear();
65
66
0 commit comments