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

Method detachThread

worker.go:258–267  ·  view source on GitHub ↗
(thread *phpThread)

Source from the content-addressed store, hash-verified

256}
257
258func (worker *worker) detachThread(thread *phpThread) {
259 worker.threadMutex.Lock()
260 for i, t := range worker.threads {
261 if t == thread {
262 worker.threads = append(worker.threads[:i], worker.threads[i+1:]...)
263 break
264 }
265 }
266 worker.threadMutex.Unlock()
267}
268
269func (worker *worker) countThreads() int {
270 worker.threadMutex.RLock()

Callers 1

beforeScriptExecutionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected