max thread name length

331 views
Skip to first unread message

foo64

unread,
Dec 10, 2012, 7:50:53 PM12/10/12
to andro...@googlegroups.com
Is there a documented max length for pthread_setname_np? Neither pthread.h or the NDK doc mention anything.

David Turner

unread,
Dec 11, 2012, 5:37:30 AM12/11/12
to andro...@googlegroups.com
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 <brian...@gmail.com> 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 andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Reply all
Reply to author
Forward
0 new messages