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

Function addRegularThread

scaling.go:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66func addRegularThread() (*phpThread, error) {
67 thread := getInactivePHPThread()
68 if thread == nil {
69 return nil, ErrMaxThreadsReached
70 }
71 convertToRegularThread(thread)
72 thread.state.WaitFor(state.Ready, state.ShuttingDown, state.Reserved)
73 return thread, nil
74}
75
76func addWorkerThread(worker *worker) (*phpThread, error) {
77 thread := getInactivePHPThread()

Callers 1

scaleRegularThreadFunction · 0.85

Calls 3

getInactivePHPThreadFunction · 0.85
convertToRegularThreadFunction · 0.85
WaitForMethod · 0.80

Tested by

no test coverage detected