OpenSwoole\Core\Process\Manager->getIPCType

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Core\Process\Manager->getIPCType()

Parameters

Return

Description

Get the current IPC Type of the process manager.

You have to install OpenSwoole core library with composer require openswoole/core to use this feature.

Example

<?php
$pm = new OpenSwoole\Core\Process\Manager();
$atomic = new Atomic(0);
$pm->add(function (Pool $pool, int $workerId) use ($atomic) {
    usleep(100000);
    $atomic->wakeup();
});
$pm->add(function (Pool $pool, int $workerId) use ($atomic) {
    $atomic->wait(1.5);
    $pool->shutdown();
});
$pm->start();
Last updated on February 28, 2026