pcntl_getcpu()
function pcntl_getcpu(): int
Returns the logical CPU on which the calling thread is executing.
Parameters: none.
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/pcntl/pcntl_getcpu.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how pcntl_getcpu is implemented in the compiler, see the internals page.