Home
last modified time | relevance | path

Searched refs:threshold (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/c_utils/base/src/
H A Dparcel.cpp88 size_t threshold = CAPACITY_THRESHOLD; in CalcNewCapacity() local
90 if (minNewCapacity == threshold) { in CalcNewCapacity()
91 return threshold; in CalcNewCapacity()
94 // If over threshold, step by threshold. in CalcNewCapacity()
95 if (minNewCapacity > threshold) { in CalcNewCapacity()
96 size_t newCapacity = minNewCapacity / threshold * threshold; in CalcNewCapacity()
98 if ((maxDataCapacity_ > 0) && (newCapacity > maxDataCapacity_ - threshold)) { in CalcNewCapacity()
101 newCapacity += threshold; in CalcNewCapacity()
[all...]
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtask_manager.cpp238 // the threshold will be dynamically modified to provide more flexibility in detecting exceptions in CheckForBlockedWorkers()
244 uint64_t threshold = state ? MIN_TIMEOUT_TIME : MAX_TIMEOUT_TIME; in CheckForBlockedWorkers() local
250 (ConcurrentHelper::GetMilliseconds() - worker->startTime_ < threshold) || in CheckForBlockedWorkers()

Completed in 7 milliseconds