()
| 129 | } |
| 130 | |
| 131 | func getInactivePHPThread() *phpThread { |
| 132 | for _, thread := range phpThreads { |
| 133 | if thread.state.Is(state.Inactive) { |
| 134 | return thread |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | for _, thread := range phpThreads { |
| 139 | if thread.state.CompareAndSwap(state.Reserved, state.BootRequested) { |
| 140 | thread.boot() |
| 141 | return thread |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | return nil |
| 146 | } |
| 147 | |
| 148 | //export go_frankenphp_main_thread_is_ready |
| 149 | func go_frankenphp_main_thread_is_ready() { |
no test coverage detected