Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 857
    • Issues 857
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 56
    • Merge requests 56
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2475

Add a new API g_getpid() for Windows UWP compatibility

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Seungha Yang requested to merge seungha.yang/glib:win-getpid into main Feb 06, 2022
  • Overview 29
  • Commits 1
  • Pipelines 4
  • Changes 7

On Windows UWP, getpid() and _getpid() function calls are not allowed, but GetCurrentProcessId() function can be used instead. Add a helper API for the case.

See also https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getpid?view=msvc-170

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: win-getpid