GetPid v0.1.0

Source
Returns the calling process ID.

Package: MacOS

Signature

func GetPid() -> int64;

Returns

int64 - the process ID assigned by the kernel.

Example

import MacOS::GetPid;

func Main() -> int {
    let pid = GetPid();
    return 0;
}

See also

  • MacOS — the package overview