MCPcopy Index your code
hub / github.com/php/frankenphp / go_frankenphp_main_thread_is_ready

Function go_frankenphp_main_thread_is_ready

phpmainthread.go:149–157  ·  view source on GitHub ↗

export go_frankenphp_main_thread_is_ready

()

Source from the content-addressed store, hash-verified

147
148//export go_frankenphp_main_thread_is_ready
149func go_frankenphp_main_thread_is_ready() {
150 mainThread.setAutomaticMaxThreads()
151 if mainThread.maxThreads < mainThread.numThreads {
152 mainThread.maxThreads = mainThread.numThreads
153 }
154
155 mainThread.state.Set(state.Ready)
156 mainThread.state.WaitFor(state.Done)
157}
158
159// max_threads = auto
160// setAutomaticMaxThreads estimates the amount of threads based on php.ini and system memory_limit

Callers

nothing calls this directly

Calls 3

SetMethod · 0.80
WaitForMethod · 0.80

Tested by

no test coverage detected