max thread name length

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

max thread name length

foo64
Is there a documented max length for pthread_setname_np? Neither pthread.h or the NDK doc mention anything.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/FrEbEOOdt70J.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: max thread name length

David Turner
It ends up calling prctl(PR_SET_NAME,...) iirc, so it will be limited to the kernel's limit, which is 15 or 16 characters.

On Tue, Dec 11, 2012 at 1:50 AM, foo64 <[hidden email]> wrote:
Is there a documented max length for pthread_setname_np? Neither pthread.h or the NDK doc mention anything.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/FrEbEOOdt70J.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.