Searched refs:controlState (Results 1 – 2 of 2) sorted by relevance
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/ |
D | CoroutineScheduler.kt | 270 private val controlState = atomic(corePoolSize.toLong() shl CPU_PERMITS_SHIFT) in <lambda>() constant in kotlinx.coroutines.scheduling.CoroutineScheduler 271 private val createdWorkers: Int inline get() = (controlState.value and CREATED_MASK).toInt() in <lambda>() 272 private val availableCpuPermits: Int inline get() = availableCpuPermits(controlState.value) in <lambda>() 279 … private inline fun incrementCreatedWorkers(): Int = createdWorkers(controlState.incrementAndGet()) in <lambda>() 280 … private inline fun decrementCreatedWorkers(): Int = createdWorkers(controlState.getAndDecrement()) in <lambda>() 282 private inline fun incrementBlockingTasks() = controlState.addAndGet(1L shl BLOCKING_SHIFT) in <lambda>() 285 controlState.addAndGet(-(1L shl BLOCKING_SHIFT)) in <lambda>() 288 private inline fun tryAcquireCpuPermit(): Boolean = controlState.loop { state -> in <lambda>() 292 if (controlState.compareAndSet(state, update)) return true in <lambda>() 295 private inline fun releaseCpuPermit() = controlState.addAndGet(1L shl CPU_PERMITS_SHIFT) in <lambda>() [all …]
|
/external/python/cpython3/Tools/msi/bundle/bootstrap/ |
D | PythonBootstrapperApplication.cpp | 2323 LPWSTR controlState = nullptr; in ProcessPageControls() local 2324 hr = BalGetStringVariable(controlName, &controlState); in ProcessPageControls() 2325 if (SUCCEEDED(hr) && controlState && *controlState) { in ProcessPageControls() 2326 if (controlState[0] == '[') { in ProcessPageControls() 2328 if (SUCCEEDED(BalFormatString(controlState, &formatted))) { in ProcessPageControls() 2329 StrFree(controlState); in ProcessPageControls() 2330 controlState = formatted; in ProcessPageControls() 2334 … if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, controlState, -1, L"disable", -1)) { in ProcessPageControls() 2337 … } else if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, controlState, -1, L"hide", -1)) { in ProcessPageControls() 2347 StrFree(controlState); in ProcessPageControls()
|