Skip to content

Commit 7762da5

Browse files
committed
updates comments.
1 parent 7e627bd commit 7762da5

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

phpmainthread.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ func (mainThread *phpMainThread) start() error {
123123
return nil
124124
}
125125

126-
// reboot exits the C thread loop for full ZTS cleanup, then spawns a fresh C thread.
127-
// Returns false if the thread is no longer in Ready state (e.g. shutting down).
126+
// rebootAllThreads reboots all underlying C threads, but keeps the go side alive
128127
func (mainThread *phpMainThread) rebootAllThreads() bool {
129128
if !mainThread.isRebooting.CompareAndSwap(false, true) {
130129
return false

worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func newWorker(o workerOpt) (*worker, error) {
166166
}
167167

168168
// RestartWorkers attempts to restart all workers gracefully
169-
// All workers must be restarted at the same time to prevent issues with opcache resetting.
169+
// All threads must be restarted at the same time to prevent issues with opcache resetting
170170
func RestartWorkers() {
171171
mainThread.rebootAllThreads()
172172
}

0 commit comments

Comments
 (0)