export go_frankenphp_on_thread_shutdown
(threadIndex C.uintptr_t)
| 261 | |
| 262 | //export go_frankenphp_on_thread_shutdown |
| 263 | func go_frankenphp_on_thread_shutdown(threadIndex C.uintptr_t) { |
| 264 | thread := phpThreads[threadIndex] |
| 265 | thread.Unpin() |
| 266 | if thread.state.Is(state.Rebooting) { |
| 267 | thread.state.Set(state.RebootReady) |
| 268 | } else { |
| 269 | thread.state.Set(state.Done) |
| 270 | } |
| 271 | } |