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

Method drain

phpthread.go:49–49  ·  view source on GitHub ↗

drain is a hook called by drainWorkerThreads right before drainChan is closed. Handlers that need to wake up a thread parked in a blocking C call (e.g. by closing a stop pipe) plug their signal in here. All current handlers are no-ops; this is the seam later handler types use without having to modif

()

Source from the content-addressed store, hash-verified

47 // current handlers are no-ops; this is the seam later handler types use
48 // without having to modify drainWorkerThreads.
49 drain()
50}
51
52func newPHPThread(threadIndex int) *phpThread {

Callers 1

drainWorkerThreadsFunction · 0.65

Implementers 4

taskThreadthreadtasks_test.go
workerThreadthreadworker.go
inactiveThreadthreadinactive.go
regularThreadthreadregular.go

Calls

no outgoing calls

Tested by

no test coverage detected