()
| 64 | } |
| 65 | |
| 66 | func 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 | |
| 76 | func addWorkerThread(worker *worker) (*phpThread, error) { |
| 77 | thread := getInactivePHPThread() |
no test coverage detected