Home
last modified time | relevance | path

Searched refs:we (Results 1 – 25 of 167) sorted by relevance

1234567

/ohos5.0/foundation/resourceschedule/ffrt/src/sync/
H A Dwait_queue.h120 we->next = whead; in push_back()
121 we->prev = whead->prev; in push_back()
122 whead->prev->next = we; in push_back()
123 whead->prev = we; in push_back()
135 we->next = nullptr; in pop_front()
136 we->prev = nullptr; in pop_front()
142 if ((we->next == nullptr) || (we->prev == nullptr)) { in remove()
145 we->prev->next = we->next; in remove()
146 we->next->prev = we->prev; in remove()
147 we->next = nullptr; in remove()
[all …]
H A Dwait_queue.cpp147 WaitUntilEntry* we = task->wue; in SuspendAndWaitUntil() local
149 push_back(we); in SuspendAndWaitUntil()
152 if (DelayedWakeup(we->tp, we, we->cb)) { in SuspendAndWaitUntil()
173 if (!we->hasWaitTime) { in WeNotifyProc()
179 if (!DelayedRemove(we->tp, dwe)) { in WeNotifyProc()
189 delete we; in WeNotifyProc()
207 if (we == nullptr) { in Notify()
212 CPUEUTask* task = we->task; in Notify()
218 we->task = nullptr; in Notify()
221 we->cv.notify_one(); in Notify()
[all …]
H A Dshared_mutex.cpp126 WaitEntry* we = wList.PopFront(&WaitEntry::node); in NotifyOne() local
128 if (we != nullptr) { in NotifyOne()
129 CPUEUTask* task = we->task; in NotifyOne()
133 we->task = nullptr; in NotifyOne()
147 WaitEntry* we = wList.PopFront(&WaitEntry::node); in NotifyAll() local
149 while (we != nullptr) { in NotifyAll()
150 CPUEUTask* task = we->task; in NotifyAll()
154 we->task = nullptr; in NotifyAll()
164 if (we->wtType == SharedMutexWaitType::READ) { in NotifyAll()
169 } else if (we->wtType == SharedMutexWaitType::WRITE) { in NotifyAll()
[all …]
H A Dsync.cpp34 bool DelayedWakeup(const TimePoint& to, WaitEntry* we, const std::function<void(WaitEntry*)>& wakeu… in DelayedWakeup() argument
36 return FFRTFacade::GetDWInstance().dispatch(to, we, wakeup); in DelayedWakeup()
39 bool DelayedRemove(const TimePoint& to, WaitEntry* we) in DelayedRemove() argument
41 return FFRTFacade::GetDWInstance().remove(to, we); in DelayedRemove()
H A Ddelayed_worker.h29 WaitEntry* we; member
57 … bool dispatch(const TimePoint& to, WaitEntry* we, const std::function<void(WaitEntry*)>& wakeup);
58 bool remove(const TimePoint& to, WaitEntry* we);
H A Ddelayed_worker.cpp262 (workCb)(w.we); in HandleWork()
277 bool DelayedWorker::dispatch(const TimePoint& to, WaitEntry* we, const std::function<void(WaitEntry… in dispatch() argument
301 map.emplace(to, DelayedWork {we, &wakeup}); in dispatch()
314 bool DelayedWorker::remove(const TimePoint& to, WaitEntry* we) in remove() argument
320 if (it->second.we == we) { in remove()
H A Dmutex.cpp258 WaitEntry* we = list.PopFront(&WaitEntry::node); in wake() local
259 if (we == nullptr) { in wake()
263 CPUEUTask* task = we->task; in wake()
264 if (ThreadNotifyMode(task) || we->weType == 2) { in wake()
265 WaitUntilEntry* wue = static_cast<WaitUntilEntry*>(we); in wake()
269 we->task = nullptr; in wake()
H A Dsync.h95 bool DelayedWakeup(const TimePoint& to, WaitEntry* we, const std::function<void(WaitEntry*)>& wakeu…
96 bool DelayedRemove(const TimePoint& to, WaitEntry* we);
H A Dsleep.cpp55 …static std::function<void(WaitEntry*)> cb([](WaitEntry* we) { CoRoutineFactory::CoWakeFunc(we->tas… in SleepUntilImpl() argument
/ohos5.0/foundation/resourceschedule/ffrt/src/dfx/watchdog/
H A Dwatchdog_util.cpp71 WaitUntilEntry* we = new (SimpleAllocator<WaitUntilEntry>::AllocMem()) WaitUntilEntry(); in SendTimeoutWatchdog() local
73 we->cb = ([gid, timeout_ms](WaitEntry* we) { in SendTimeoutWatchdog() argument
80 SimpleAllocator<WaitUntilEntry>::FreeMem(static_cast<WaitUntilEntry*>(we)); in SendTimeoutWatchdog()
85 we->tp = (now + timeoutTime + delayTime); in SendTimeoutWatchdog()
86 if (!DelayedWakeup(we->tp, we, we->cb)) { in SendTimeoutWatchdog()
87 SimpleAllocator<WaitUntilEntry>::FreeMem(we); in SendTimeoutWatchdog()
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/
H A Dscpuworker_manager.cpp123 WaitUntilEntry* we = new (SimpleAllocator<WaitUntilEntry>::AllocMem()) WaitUntilEntry(); in AddDelayedTask() local
124we->tp = std::chrono::steady_clock::now() + std::chrono::microseconds(DELAYED_WAKED_UP_TASK_TIME_I… in AddDelayedTask()
125 we->cb = ([this, qos](WaitEntry* we) { in AddDelayedTask() argument
132 SimpleAllocator<WaitUntilEntry>::FreeMem(static_cast<WaitUntilEntry*>(we)); in AddDelayedTask()
143 SimpleAllocator<WaitUntilEntry>::FreeMem(static_cast<WaitUntilEntry*>(we)); in AddDelayedTask()
146 if (!DelayedWakeup(we->tp, we, we->cb)) { in AddDelayedTask()
147 SimpleAllocator<WaitUntilEntry>::FreeMem(we); in AddDelayedTask()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-common-components-text-input.md203 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
205 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
207 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
209 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
211 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-common-components-text-input.md203 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
205 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
207 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
209 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
211 …e ourselves with anyone we think is happier — a relative, someone we know a lot, or someone we har…
/ohos5.0/build/config/
H A Dv8_target_cpu.gni8 # This arg is used when we want to tell the JIT-generating v8 code
9 # that we want to have it generate for an architecture that is different
10 # than the architecture that v8 will actually run on; we then run the
11 # code under an emulator. For example, we might run v8 on x86, but
14 # This arg is defined here rather than in the v8 project because we want
45 # If we're running under a sanitizer, if we configure v8 to generate
H A DBUILD.gn118 # builds, and we have to tell it to turn it off.
311 # If we're using the prebuilt instrumented libraries with the sanitizers, we
334 # If we're using the prebuilt instrumented libraries with the sanitizers, we
/ohos5.0/build/config/compiler/
H A Dcompiler.gni67 # Whether or not we should turn on incremental WPO. Only affects the VS
71 # Whether or not we should use position independent code.
74 # Whether we're using a sample profile collected on an architecture different
75 # than the one we're compiling for.
89 # Whether we should consider the profile we're using to be accurate. Accurate
131 # In general assume that if we have frame pointers then we can use them to
142 # provide intrinsics to access them, so we don't use them.
198 # info or variable info, so we can leave that out to speed up the build.
207 # An exception is made when target_os == "chromeos" as we only use the ohos
H A DBUILD.gn31 # Default to warnings as errors for default workflow, where we catch
54 # When we are going to use gold we need to find it.
95 # clang_sample_profile_path is empty, we'll fall back to the default.
451 # we build same files with same compile flag.
479 # paths to the tools it invokes. We don't want this because we don't
510 # but we use this feature in several places in Chromium.
568 # except we do not use the ThinLTO cache, which leaks temporary
692 # simplicity we always explicitly set the architecture.
1092 # archive names to 16 characters, which is not what we want).
1284 # On ohos_full_debug mode, we close all optimization
[all …]
/ohos5.0/build/toolchain/
H A Dconcurrent_links.gni7 # in the context of the default_toolchain, so we can at least check for that.
15 # Limit the number of concurrent links; we often want to run fewer
16 # links at once than we do compiles, because linking is memory-intensive.
18 # available, so we call out to a script to get the right value.
/ohos5.0/foundation/resourceschedule/ffrt/src/queue/
H A Dqueue_handler.cpp310 WaitUntilEntry* we = new (SimpleAllocator<WaitUntilEntry>::AllocMem()) WaitUntilEntry(); in SetTimeoutMonitor() local
312 we->cb = ([this, task](WaitEntry* we) { in SetTimeoutMonitor() argument
318 SimpleAllocator<WaitUntilEntry>::FreeMem(static_cast<WaitUntilEntry*>(we)); in SetTimeoutMonitor()
324 we->tp = std::chrono::time_point_cast<std::chrono::steady_clock::duration>(now + timeout); in SetTimeoutMonitor()
326 if (!DelayedWakeup(we->tp, we, we->cb)) { in SetTimeoutMonitor()
328 SimpleAllocator<WaitUntilEntry>::FreeMem(we); in SetTimeoutMonitor()
/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-migration-background.md10 The following case demonstrates how we can improve stability and correctness of our code by enforci…
30 // we tell the users of our API about all possible return values.
74 // name can be "undefined", so we cannot say to those who use this API
89 // Compile-time(!) error: Compiler suspects that we
115 …o string variables as an input and produces a new string. However, what if we pass some “special” …
132 But what if we could somehow guarantee to our exectuion engine that the only values that are passed…
133 …n this case, checks like `__internal_tostring` become redundant because when we execute the program
134 we are 100% sure that there will be no corner cases. For this particular case this mechanism would …
135 not a valid value of the `string` type. If we had such feature, the code would not simply build:
148 compile-time errors. In exchange, we give our running engine much more information and guarantees a…
/ohos5.0/docs/en/device-dev/
H A Ddisclaimer.md5we endeavor to direct you to helpful, trustworthy resources, we cannot endorse, approve, or guaran…
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/PropertyTools/
H A Dproperty_api_impl.inl107 // we can only destroy things we "own" (know)
218 // we can only destroy things we "own" (know)
/ohos5.0/build/config/posix/
H A DBUILD.gn54 # Make sure we don't link against libc++ or libstdc++.
73 # removes all of the default libraries, so add back the ones that we need.
110 # 'cflags'." Because of this, we must set the sysroot flags for
/ohos5.0/build/config/sanitizers/
H A Dsanitizers.gni105 # This flag is not used for libFuzzer (use_libfuzzer=true) unless we are on
106 # Mac. Instead, we use:
150 # Whether we are doing a fuzzer build. Normally this should be checked instead
175 # Whether we are linking against a debugging sanitizer runtime library. Among
216 # and have verified it works, ask brettw and we can consider removing it from
235 # Make sure that if we recover on detection (i.e. not crash), diagnostics are
261 # Allow sanitizer instrumentation to be removed if we are not using MSan
/ohos5.0/build/config/gcc/
H A DBUILD.gn25 # lots of exports that slow everything down. In general we explicitly mark
26 # which functions we want to export from components.
59 # libraries in the build directory that we expect to be automatically loaded.

1234567