Home
last modified time | relevance | path

Searched refs:queue (Results 1 - 8 of 8) sorted by relevance

/ide/tools/previewer/test/unittest/util/
H A DCallbackQueueTest.cpp25 CallbackQueue queue; in TEST() local
29 queue.AddCallback([&callbackCalled]() { in TEST()
34 queue.ConsumingCallback(); in TEST()
42 CallbackQueue queue; in TEST() local
46 queue.AddCallback([]() { in TEST()
54 threads.emplace_back([&queue]() { in TEST()
55 queue.ConsumingCallback(); in TEST()
65 EXPECT_EQ(queue.callBackList.size(), 0); in TEST()
H A DCppTimerTest.cpp66 CallbackQueue queue; in TEST() local
73 timer.RunTimerTick(queue); in TEST()
74 EXPECT_TRUE(queue.callBackList.size() > 0); in TEST()
75 queue.ConsumingCallback(); in TEST()
85 CallbackQueue queue; in TEST() local
88 std::thread commandThead([&timer, &queue, &interval]() { in TEST()
90 timer.RunTimerTick(queue); in TEST()
101 CallbackQueue queue; in TEST() local
105 timer.RunTimerTick(queue); in TEST()
/ide/tools/previewer/jsapp/rich/external/
H A DEventRunner.cpp52 while (!queue.empty()) { in Run()
53 const auto& top = queue.top(); in Run()
54 // If the task at the top of task queue has not yet expired, there is nothing more to do. in Run()
58 // Only record tasks without executing them when the task queue mutex is hold. in Run()
60 queue.pop(); in Run()
64 // Flushing tasks here without holing onto the task queue mutex. in Run()
76 queue.push({ order, callback, targetTime }); in PushTask()
H A DEventRunner.h42 EventQueue queue; member in OHOS::AppExecFwk::final
H A DEventQueue.h20 #include <queue>
/ide/tools/previewer/util/
H A DCppTimer.cpp47 void CppTimer::RunTimerTick(CallbackQueue& queue) in RunTimerTick() argument
71 queue.AddCallback(functional); in RunTimerTick()
H A DCppTimer.h74 void RunTimerTick(CallbackQueue& queue);
/ide/tools/previewer/test/unittest/jsapp/
H A DEventHandlerTest.cpp58 EXPECT_TRUE(OHOS::AppExecFwk::EventRunner::GetMainEventRunner().queue.size() > 0); in TEST()

Completed in 3 milliseconds