[php-src] PR #13908: ext/pcntl: adding pcntl_getcpu.
| From: | devnexen | Date: | Sun, 07 Apr 2024 16:11:53 +0000 |
| Subject: | [php-src] PR #13908: ext/pcntl: adding pcntl_getcpu. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25660@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13908
Author: devnexen
using sched_getcpu under the hood (Linux and FreeBSD). Returns the current cpu id for the current
process. For Linux, we need to see beyond the sole presence of the symbol to consider it.
Mostly useful, for now, in the cpu affinity context since the os can migrate processes as it sees
fits otherwise.