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

Function getInactivePHPThread

phpmainthread.go:131–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func getInactivePHPThread() *phpThread {
132 for _, thread := range phpThreads {
133 if thread.state.Is(state.Inactive) {
134 return thread
135 }
136 }
137
138 for _, thread := range phpThreads {
139 if thread.state.CompareAndSwap(state.Reserved, state.BootRequested) {
140 thread.boot()
141 return thread
142 }
143 }
144
145 return nil
146}
147
148//export go_frankenphp_main_thread_is_ready
149func go_frankenphp_main_thread_is_ready() {

Callers 4

InitFunction · 0.85
addRegularThreadFunction · 0.85
addWorkerThreadFunction · 0.85
initWorkersFunction · 0.85

Calls 3

IsMethod · 0.80
CompareAndSwapMethod · 0.80
bootMethod · 0.80

Tested by

no test coverage detected