Skip to content

Add Pid (Process Identity) type #127

@ElFantasma

Description

@ElFantasma

Add unique process identifiers:

pub struct Pid(u64);

pub enum ExitReason {
    Normal,
    Error(String),
    Shutdown,
    Linked(Pid),
}

Features:

  • Globally unique across process lifetime
  • Lightweight (u64-based)
  • Foundation for distributed support

New file: concurrency/src/pid.rs

Part of Phase 3 (Process Primitives).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions