representation of a thread with no work assigned to it implements the threadHandler interface each inactive thread weighs around ~350KB keeping threads at 'inactive' will consume more memory, but allow a faster transition
| 11 | // each inactive thread weighs around ~350KB |
| 12 | // keeping threads at 'inactive' will consume more memory, but allow a faster transition |
| 13 | type inactiveThread struct { |
| 14 | thread *phpThread |
| 15 | } |
| 16 | |
| 17 | func convertToInactiveThread(thread *phpThread) { |
| 18 | thread.setHandler(&inactiveThread{thread: thread}) |
nothing calls this directly
no outgoing calls
no test coverage detected