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
()
| 47 | // current handlers are no-ops; this is the seam later handler types use |
| 48 | // without having to modify drainWorkerThreads. |
| 49 | drain() |
| 50 | } |
| 51 | |
| 52 | func newPHPThread(threadIndex int) *phpThread { |
no outgoing calls
no test coverage detected