Skip to content

this_process get_id

Alairion edited this page May 8, 2021 · 2 revisions

Functions

(1) process::id get_id() noexcept;
  1. Returns the current process's id.

Parameters

None.

Return value

  1. Returns a nes::process::id that is the unique identifier for the current process.

Exceptions

  1. Does not throw.

Implementation details

  1. On Windows, returns process::id{GetCurrentProcessId()}
    On Posix systems, returns process::id{getpid()}
Clone this wiki locally