Home
last modified time | relevance | path

Searched refs:timeOut (Results 1 - 25 of 106) sorted by relevance

12345

/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/
H A Dmessage_queue_utils.cpp41 int8_t MessageQueueUtils::PutMessage(QueueHandler handler, const void *msgPtr, uint32_t timeOut) in PutMessage() argument
43 (void)(timeOut); in PutMessage()
61 int8_t MessageQueueUtils::GetMessage(QueueHandler handler, void *msgPtr, uint32_t timeOut) in GetMessage() argument
65 (void)(timeOut); in GetMessage()
/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_timer.cpp80 int32_t timeOut = 10; in HWTEST_F() local
83 int32_t ret = timer->StartTimer(name, timeOut, TimeOut); in HWTEST_F()
116 int32_t timeOut = 10; in HWTEST_F() local
118 timer->StartTimer(name, timeOut, TimeOut); in HWTEST_F()
132 int32_t timeOut = 10; in HWTEST_F() local
137 timer->StartTimer(name, timeOut, TimeOut); in HWTEST_F()
/foundation/distributedhardware/device_manager/utils/src/timer/
H A Ddm_timer.cpp45 int32_t DmTimer::StartTimer(std::string name, int32_t timeOut, TimerCallback callback) in StartTimer() argument
47 if (name.empty() || timeOut <= MIN_TIME_OUT || timeOut > MAX_TIME_OUT || callback == nullptr) { in StartTimer()
56 ffrt::task_handle handle = queue_->submit_h(taskFunc, ffrt::task_attr().delay(timeOut * MICROSECOND_TO_SECOND)); in StartTimer()
/foundation/window/window_manager/wm/src/
H A Dpattern_detach_callback.cpp29 void PatternDetachCallback::GetResult(long timeOut) in GetResult() argument
31 future_.GetResult(timeOut); in GetResult()
H A Dfuture_callback.cpp29 WSRect FutureCallback::GetResult(long timeOut) in GetResult() argument
31 return future_.GetResult(timeOut); in GetResult()
/foundation/arkui/ace_engine_lite/frameworks/native_engine/async/
H A Dmessage_queue_utils.cpp83 int8_t MessageQueueUtils::PutMessage(QueueHandler handler, const void* msgPtr, uint32_t timeOut) in PutMessage() argument
97 if (osMessageQueuePut(queueId, static_cast<void *>(&msg), 0, timeOut) != osOK) { in PutMessage()
112 int8_t MessageQueueUtils::GetMessage(QueueHandler handler, void* msgPtr, uint32_t timeOut) in GetMessage() argument
123 if (osMessageQueueGet(queueId, msgPtr, 0, timeOut) != osOK) { in GetMessage()
/foundation/window/window_manager/utils/include/
H A Dfuture.h28 T GetResult(long timeOut) in GetResult() argument
31 if (!conditionVariable_.wait_for(lock, std::chrono::milliseconds(timeOut), [this] { return IsReady(); })) { in GetResult()
32 OHOS::HiviewDFX::HiLog::Error(LABEL, "wait for %{public}ld, timeout.", timeOut); in GetResult()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_surface_ohos.cpp55 void RSSurfaceOhos::SetTimeOut(int32_t timeOut) in SetTimeOut() argument
57 timeOut_ = timeOut; in SetTimeOut()
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/
H A Ddfx_timer.cpp26 DfxTimer::DfxTimer(int32_t type, int32_t object, int64_t timeOut, bool isReport) in DfxTimer() argument
31 timeOut_ = timeOut; in DfxTimer()
/foundation/distributedhardware/device_manager/utils/src/timer/lite/
H A Ddm_timer.cpp46 int32_t DmTimer::StartTimer(std::string name, int32_t timeOut, TimerCallback callback) in StartTimer() argument
49 if (name.empty() || timeOut <= MIN_TIME_OUT || timeOut > MAX_TIME_OUT || callback == nullptr) { in StartTimer()
54 std::shared_ptr<Timer> timer = std::make_shared<Timer>(name, timeOut, callback); in StartTimer()
/foundation/ai/ai_engine/services/server/server_executor/source/
H A Dfuture.cpp48 IResponse *Future::GetResponse(int timeOut) const in GetResponse()
50 semaphore_->Wait(timeOut); in GetResponse()
H A Dsync_msg_handler.cpp96 int SyncMsgHandler::ReceiveResponse(int timeOut, SimpleEventNotifier<IResponse> &notifier, in ReceiveResponse() argument
99 bool notifierCode = notifier.GetFromFront(timeOut, response); in ReceiveResponse()
/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/async/
H A Dmessage_queue_utils.h132 * @param [in] timeOut: the time to wait when the queue is full
136 static int8_t PutMessage(QueueHandler handler, const void *msgPtr, uint32_t timeOut);
143 * @param [in] timeOut: the time to wait when the queue is empty
147 static int8_t GetMessage(QueueHandler handler, void *msgPtr, uint32_t timeOut);
/foundation/multimedia/media_lite/services/player_lite/impl/buffersource/include/
H A Dbuffer_source.h76 int DequeIdleBuffer(QueBuffer* buffer, int timeOut);
79 int DequeFilledBuffer(QueBuffer* buffer, int timeOut);
/foundation/resourceschedule/ffrt/src/util/
H A Dinit.cpp47 [] (ffrt::CPUEUTask* task, bool timeOut) -> void {CoWake(task, timeOut);}); in ffrt_init()
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/include/
H A Defficiency_resource_info.h28 EfficiencyResourceInfo(uint32_t resourceNumber, bool isApply, uint32_t timeOut, std::string reason, in EfficiencyResourceInfo() argument
30 timeOut_(timeOut), reason_(reason), isPersist_(isPersist), isProcess_(isProcess) {} in EfficiencyResourceInfo()
/foundation/ai/ai_engine/services/common/platform/threadpool/source/
H A Dthread.cpp144 bool Thread::StopThread(int timeOut) in StopThread() argument
152 // if timeOut==0 means just set stop flag in StopThread()
153 if (timeOut == 0) { in StopThread()
158 while ((status_ == RUNNING) && (static_cast<int32_t>(elapser.ElapseMilli()) < timeOut)) { in StopThread()
H A Dthread_pool.cpp107 bool ThreadPool::StopThreads(int32_t timeOut) in StopThreads() argument
120 // judge if the wait time over timeOut in StopThreads()
121 CHK_RET(static_cast<int32_t>(elapser.ElapseMilli()) > timeOut, false); in StopThreads()
/foundation/resourceschedule/ffrt/src/eu/
H A Dco_routine.h112 static void CoWakeFunc(ffrt::CPUEUTask* task, bool timeOut) in CoWakeFunc() argument
114 return Instance().cowake_(task, timeOut); in CoWakeFunc()
132 void CoWake(ffrt::CPUEUTask* task, bool timeOut);
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/
H A Defficiency_resources_operation.cpp104 int32_t timeOut {0}; in ParseParameters()
117 if (!GetNamedInt32Value(env, argv[0], "timeOut", timeOut)) { in ParseParameters()
133 params = EfficiencyResourceInfo {resourceNumber, isApply, timeOut, reason, isPersist, isProcess}; in ParseParameters()
/foundation/window/window_manager/wm/include/
H A Dpattern_detach_callback.h27 void GetResult(long timeOut);
H A Dfuture_callback.h27 WSRect GetResult(long timeOut);
/foundation/ai/ai_engine/services/server/server_executor/include/
H A Di_future.h36 * @param [in] timeOut Delayed time, measured by millisecond.
39 virtual IResponse *GetResponse(int timeOut) const = 0;
/foundation/ai/ai_engine/services/common/platform/semaphore/include/
H A Dsimple_event_notifier.h40 * @param [in] timeOut The range of timeout
44 bool GetFromFront(int timeOut, T *&item);
/foundation/multimedia/media_library/frameworks/services/media_dfx/include/
H A Ddfx_timer.h25 DfxTimer(int32_t type, int32_t object, int64_t timeOut, bool isReport);

Completed in 9 milliseconds

12345