/third_party/flutter/engine/flutter/runtime/ |
D | dart_isolate_unittests.cc | 105 fml::AutoResetWaitableEvent latch; in ~AutoIsolateShutdown() local 106 fml::TaskRunner::RunNowOrPostTask(runner_, [isolate = isolate_, &latch]() { in ~AutoIsolateShutdown() 112 latch.Signal(); in ~AutoIsolateShutdown() 114 latch.Wait(); in ~AutoIsolateShutdown() 126 fml::AutoResetWaitableEvent latch; in RunInIsolateScope() local 128 runner_, [this, &result, &latch, closure]() { in RunInIsolateScope() 134 latch.Signal(); in RunInIsolateScope() 136 latch.Wait(); in RunInIsolateScope() 268 fml::AutoResetWaitableEvent latch; in RunDartCodeInIsolate() local 273 latch.Signal(); in RunDartCodeInIsolate() [all …]
|
D | dart_lifecycle_unittests.cc | 128 fml::CountDownLatch latch(isolate_count); in TEST_F() local 133 [vm_data, &settings, &latch, thread_task_runner]() { in TEST_F() 137 latch.CountDown(); in TEST_F() 141 latch.Wait(); in TEST_F()
|
D | service_protocol.cc | 154 fml::AutoResetWaitableEvent latch; in HandleMessageOnHandler() local 158 [&latch, // in HandleMessageOnHandler() 167 latch.Signal(); in HandleMessageOnHandler() 169 latch.Wait(); in HandleMessageOnHandler()
|
/third_party/flutter/engine/flutter/shell/common/ |
D | shell_test.cc | 28 fml::AutoResetWaitableEvent latch; in SendEnginePlatformMessage() local 31 [shell, &latch, message = std::move(message)]() { in SendEnginePlatformMessage() 35 latch.Signal(); in SendEnginePlatformMessage() 37 latch.Wait(); in SendEnginePlatformMessage() 81 fml::AutoResetWaitableEvent latch; in PlatformViewNotifyCreated() local 83 shell->GetTaskRunners().GetPlatformTaskRunner(), [shell, &latch]() { in PlatformViewNotifyCreated() 85 latch.Signal(); in PlatformViewNotifyCreated() 87 latch.Wait(); in PlatformViewNotifyCreated() 91 fml::AutoResetWaitableEvent latch; in RunEngine() local 94 [shell, &latch, &configuration]() { in RunEngine() [all …]
|
D | ace_shell.cc | 232 fml::AutoResetWaitableEvent latch; in Create() local 236 fml::MakeCopyable([&latch, // in Create() 248 latch.Signal(); in Create() 250 latch.Wait(); in Create() 437 fml::AutoResetWaitableEvent latch; in OnPlatformViewCreated() local 442 &latch]() mutable { in OnPlatformViewCreated() 451 latch.Signal(); in OnPlatformViewCreated() 483 gpu_task, &latch] { in OnPlatformViewCreated() 498 latch.Signal(); in OnPlatformViewCreated() 504 latch.Wait(); in OnPlatformViewCreated() [all …]
|
D | shell.cc | 241 fml::AutoResetWaitableEvent latch; in Create() local 245 fml::MakeCopyable([&latch, // in Create() 263 latch.Signal(); in Create() 265 latch.Wait(); in Create() 526 fml::AutoResetWaitableEvent latch; in OnPlatformViewCreated() local 531 &latch]() mutable { in OnPlatformViewCreated() 540 latch.Signal(); in OnPlatformViewCreated() 558 &latch // in OnPlatformViewCreated() 570 latch.Signal(); in OnPlatformViewCreated() 595 latch.Wait(); in OnPlatformViewCreated() [all …]
|
D | shell_unittests.cc | 42 fml::AutoResetWaitableEvent latch; in ValidateShell() local 44 shell->GetTaskRunners().GetPlatformTaskRunner(), [shell, &latch]() { in ValidateShell() 46 latch.Signal(); in ValidateShell() 48 latch.Wait(); in ValidateShell() 189 fml::CountDownLatch latch(2); in TEST_F() local 190 AddNativeCallback("NotifyNative", CREATE_NATIVE_ENTRY([&latch](auto args) { in TEST_F() 191 latch.CountDown(); in TEST_F() 196 latch.Wait(); in TEST_F() 606 fml::AutoResetWaitableEvent latch; in TEST_F() local 612 latch.Signal(); in TEST_F() [all …]
|
D | ace_platform_view.cc | 61 fml::ManualResetWaitableEvent latch; in NotifyCreated() local 63 task_runners_.GetGPUTaskRunner(), [platform_view, &surface, &latch]() { in NotifyCreated() 65 latch.Signal(); in NotifyCreated() 67 latch.Wait(); in NotifyCreated()
|
D | platform_view.cc | 69 fml::ManualResetWaitableEvent latch; in NotifyCreated() local 71 task_runners_.GetGPUTaskRunner(), [platform_view, &surface, &latch]() { in NotifyCreated() 73 latch.Signal(); in NotifyCreated() 75 latch.Wait(); in NotifyCreated()
|
/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | image_decoder_unittests.cc | 39 fml::AutoResetWaitableEvent latch; in ~TestIOManager() local 41 [&latch, queue = unref_queue_]() { in ~TestIOManager() 43 latch.Signal(); in ~TestIOManager() 45 latch.Wait(); in ~TestIOManager() 116 fml::AutoResetWaitableEvent latch; in TEST_F() local 121 latch.Signal(); in TEST_F() 123 latch.Wait(); in TEST_F() 135 fml::AutoResetWaitableEvent latch; in TEST_F() local 149 latch.Signal(); in TEST_F() 153 latch.Wait(); in TEST_F() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/embedder/tests/ |
D | embedder_a11y_unittests.cc | 30 fml::AutoResetWaitableEvent latch; in TEST_F() local 35 "SignalNativeTest", CREATE_NATIVE_ENTRY(([&latch](Dart_NativeArguments) { in TEST_F() 36 latch.Signal(); in TEST_F() 79 latch.Signal(); in TEST_F() 81 latch.Wait(); in TEST_F() 99 latch.Signal(); in TEST_F() 103 latch.Wait(); in TEST_F() 114 latch.Signal(); in TEST_F() 119 latch.Wait(); in TEST_F() 154 latch.Wait(); in TEST_F() [all …]
|
D | embedder_unittests.cc | 40 fml::AutoResetWaitableEvent latch; in TEST_F() local 41 context.AddIsolateCreateCallback([&latch]() { latch.Signal(); }); in TEST_F() 46 latch.Wait(); in TEST_F() 61 static fml::AutoResetWaitableEvent latch; in TEST_F() local 63 latch.Signal(); in TEST_F() 69 latch.Wait(); in TEST_F() 153 fml::AutoResetWaitableEvent latch; in TEST_F() local 176 latch.Signal(); in TEST_F() 191 latch.Wait(); in TEST_F() 226 fml::AutoResetWaitableEvent latch; in TEST_F() local [all …]
|
/third_party/flutter/engine/flutter/fml/synchronization/ |
D | count_down_latch_unittests.cc | 15 CountDownLatch latch(0); in TEST() local 16 latch.Wait(); in TEST() 23 CountDownLatch latch(count); in TEST() local 24 auto decrement_latch_on_thread = [runner = thread.GetTaskRunner(), &latch, in TEST() 26 runner->PostTask([&latch, ¤t_count]() { in TEST() 29 latch.CountDown(); in TEST() 35 latch.Wait(); in TEST()
|
/third_party/flutter/engine/flutter/shell/platform/ohos/ |
D | platform_view_ohos.cc | 35 fml::AutoResetWaitableEvent latch; in NotifyCreated() local 38 [&latch, surface = surface_.get(), &window]() mutable { in NotifyCreated() 40 latch.Signal(); in NotifyCreated() 42 latch.Wait(); in NotifyCreated() 55 fml::AutoResetWaitableEvent latch; in NotifyChanged() local 58 [&latch, surface = surface_.get(), &size]() mutable { in NotifyChanged() 60 latch.Signal(); in NotifyChanged() 62 latch.Wait(); in NotifyChanged()
|
/third_party/boost/libs/thread/doc/ |
D | latch.qbk | 16 An individual latch is a reusable object; once the operation has been completed, the threads can re… 18 A completion latch is like a latch that allows to associate a completion function which will be cal… 25 Sample use cases for the latch include: 33 latch completion_latch(NTASKS); 48 latch start_latch(1); 68 …s may finish before others. We reduce the number of threads waiting on the latch when this happens. 109 [section:latch Class `latch`] 111 #include <boost/thread/latch.hpp> 113 class latch 116 latch(latch const&) = delete; [all …]
|
/third_party/flutter/engine/flutter/shell/platform/android/ |
D | ace_platform_view_android.cc | 124 fml::AutoResetWaitableEvent latch; in NotifyCreated() local 127 [&latch, surface = android_surface_.get(), in NotifyCreated() 130 latch.Signal(); in NotifyCreated() 132 latch.Wait(); in NotifyCreated() 142 fml::AutoResetWaitableEvent latch; in NotifyDestroyed() local 145 [&latch, surface = android_surface_.get()]() { in NotifyDestroyed() 147 latch.Signal(); in NotifyDestroyed() 149 latch.Wait(); in NotifyDestroyed() 157 fml::AutoResetWaitableEvent latch; in NotifyChanged() local 160 [&latch, surface = android_surface_.get(), size]() { in NotifyChanged() [all …]
|
D | platform_view_android.cc | 49 fml::AutoResetWaitableEvent latch; in NotifyCreated() local 52 [&latch, surface = android_surface_.get(), in NotifyCreated() 55 latch.Signal(); in NotifyCreated() 57 latch.Wait(); in NotifyCreated() 67 fml::AutoResetWaitableEvent latch; in NotifyDestroyed() local 70 [&latch, surface = android_surface_.get()]() { in NotifyDestroyed() 72 latch.Signal(); in NotifyDestroyed() 74 latch.Wait(); in NotifyDestroyed() 82 fml::AutoResetWaitableEvent latch; in NotifyChanged() local 85 [&latch, surface = android_surface_.get(), size]() { in NotifyChanged() [all …]
|
/third_party/flutter/engine/flutter/fml/ |
D | thread.cc | 27 fml::AutoResetWaitableEvent latch; in Thread() local 29 thread_ = std::make_unique<std::thread>([&latch, &runner, name]() -> void { in Thread() 34 latch.Signal(); in Thread() 37 latch.Wait(); in Thread()
|
D | message_loop_unittests.cc | 141 fml::AutoResetWaitableEvent latch; in TEST() local 142 std::thread thread([&runner, &latch]() { in TEST() 146 latch.Signal(); in TEST() 149 latch.Wait(); in TEST() 296 fml::CountDownLatch latch(kCount); in TEST() local 305 latch.CountDown(); in TEST() 308 latch.Wait(); in TEST()
|
D | message_loop_task_queues_merge_unmerge_unittests.cc | 116 fml::CountDownLatch latch(2); in TEST() local 120 new TestWakeable([&](fml::TimePoint wake_time) { latch.CountDown(); })); in TEST() 123 new TestWakeable([&](fml::TimePoint wake_time) { latch.CountDown(); })); in TEST() 133 latch.Wait(); in TEST()
|
D | message_loop_task_queues_unittests.cc | 130 fml::CountDownLatch latch(2); in TEST() local 135 queue_id, new TestWakeable([&latch, &expected](fml::TimePoint wake_time) { in TEST() 137 latch.CountDown(); in TEST() 148 latch.Wait(); in TEST()
|
/third_party/boost/boost/thread/ |
D | latch.hpp | 24 class latch class 55 BOOST_THREAD_NO_COPYABLE( latch) 58 latch(std::size_t count) : in latch() function in boost::latch 66 ~latch() in ~latch()
|
/third_party/flutter/flutter/examples/platform_channel/android/app/src/androidTest/java/com/example/platformchannel/ |
D | ExampleInstrumentedTest.java | 63 private CountDownLatch latch = new CountDownLatch(1); field in ExampleInstrumentedTest.BitmapPoller 78 latch.await(waitMsec, TimeUnit.MILLISECONDS); in waitForBitmap() 87 latch.countDown();
|
/third_party/flutter/flutter/examples/platform_channel_swift/android/app/src/androidTest/java/com/example/platformchannel/ |
D | ExampleInstrumentedTest.java | 63 private CountDownLatch latch = new CountDownLatch(1); field in ExampleInstrumentedTest.BitmapPoller 78 latch.await(waitMsec, TimeUnit.MILLISECONDS); in waitForBitmap() 87 latch.countDown();
|
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/ |
D | runner.cc | 219 fml::AutoResetWaitableEvent latch; in SetupTraceObserver() local 222 latch.Signal(); in SetupTraceObserver() 224 latch.Wait(); in SetupTraceObserver()
|