This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] nptl: Add pthread_thread_number_np function


On 12/14/2017 07:56 PM, Florian Weimer wrote:
The implementation is actually in libc.so.  With a full implementation
of pthread_self in libc.so, pthread_thread_number_np is completely
usable without libpthread.

And once again, I forgot the NEWS entry.

I should say that this is something completely different from gettid, and by itself usable for logging, certain concurrency-related algorithms, and writing DRBGs (where the current thread's number can be used to ensure that different threads get different bit sequences).

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]