We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fdf94 commit 5a9a24fCopy full SHA for 5a9a24f
src/parallel.c
@@ -235,7 +235,7 @@ PHP_RSHUTDOWN_FUNCTION(PARALLEL_CORE)
235
// In case of a `zend_bailout()` this mutex could still be locked, so we
236
// unlock it just in case.
237
// See https://github.com/krakjoe/parallel/issues/313 for more details
238
- if (CG(unclean_shutdown) == 1) {
+ if (UNEXPECTED(CG(unclean_shutdown) == 1)) {
239
pthread_mutex_unlock(&php_parallel_output_mutex);
240
}
241
0 commit comments