• glibc-2.34-176.el9
    • Low
    • Hide
      74d463c50bb1096efef47022405c7db33f83fb5a
      6e30efe570f1ba135747c6d8f4004e78cd24c49c
      Show
      74d463c50bb1096efef47022405c7db33f83fb5a 6e30efe570f1ba135747c6d8f4004e78cd24c49c
    • 2
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 1
    • False
    • Hide

      None

      Show
      None
    • Yes
    • PT Libraries 2025 S04, PT Libraries 2025 S05
    • Enhancement
    • Hide
      Feature, enhancement: glibc implementation of `pthread_gettid_np` function
      Reason: Previously, there was no direct way to obtain the Linux task/thread ID (TID) from a glibc `pthread_t` handle. The `pthread_gettid_np` function declared in `<pthread.h>` (if `_GNU_SOURCE` is in effect) provides the TID value directly.
      Result: Applications that need to use functions such as `sched_setattr` that expect a TID can do if they first obtain the TID from a `pthread_t` handle.
      Show
      Feature, enhancement: glibc implementation of `pthread_gettid_np` function Reason: Previously, there was no direct way to obtain the Linux task/thread ID (TID) from a glibc `pthread_t` handle. The `pthread_gettid_np` function declared in `<pthread.h>` (if `_GNU_SOURCE` is in effect) provides the TID value directly. Result: Applications that need to use functions such as `sched_setattr` that expect a TID can do if they first obtain the TID from a `pthread_t` handle.
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      We are adding sched_setattr and sched_getattr under RHEL-56627, but these functions need a TID and cannot work on a pthread_t. If upstream accepts pthread_gettid_np, we should add it downstream as well:

      We can do this in an ABI-preserving manner by implementing the function in libc_nonshared.a on top of pthread_getcpuclockid.

              skolosov@redhat.com Sergey Kolosov
              fweimer@redhat.com Florian Weimer
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              Sergey Kolosov Sergey Kolosov
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: