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

Struct inactiveThread

threadinactive.go:13–15  ·  view source on GitHub ↗

representation of a thread with no work assigned to it implements the threadHandler interface each inactive thread weighs around ~350KB keeping threads at 'inactive' will consume more memory, but allow a faster transition

Source from the content-addressed store, hash-verified

11// each inactive thread weighs around ~350KB
12// keeping threads at 'inactive' will consume more memory, but allow a faster transition
13type inactiveThread struct {
14 thread *phpThread
15}
16
17func convertToInactiveThread(thread *phpThread) {
18 thread.setHandler(&inactiveThread{thread: thread})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected