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

Function convertToWorkerThread

threadworker.go:32–39  ·  view source on GitHub ↗
(thread *phpThread, worker *worker)

Source from the content-addressed store, hash-verified

30}
31
32func convertToWorkerThread(thread *phpThread, worker *worker) {
33 thread.setHandler(&workerThread{
34 state: thread.state,
35 thread: thread,
36 worker: worker,
37 })
38 worker.attachThread(thread)
39}
40
41// beforeScriptExecution returns the name of the script or an empty string on shutdown
42func (handler *workerThread) beforeScriptExecution() string {

Calls 2

setHandlerMethod · 0.80
attachThreadMethod · 0.80