diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-04-12 13:40:20 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2010-04-12 13:40:20 +0200 |
commit | 1fd194fb757480a11ebd877e17dd627c90d76dd1 (patch) | |
tree | 9ad22d95dd8673bc036d14b0055a8dcd6febe09e /nptl/sysdeps/pthread | |
parent | 4ac4e460b116fb6da6e80124f4c4f6968eb86341 (diff) | |
parent | ea42a20caed5b343ff20a0d4622ae6c17b77161b (diff) |
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'nptl/sysdeps/pthread')
-rw-r--r-- | nptl/sysdeps/pthread/pthread.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h index b84fd5c7a4..44cf9f0cac 100644 --- a/nptl/sysdeps/pthread/pthread.h +++ b/nptl/sysdeps/pthread/pthread.h @@ -425,6 +425,18 @@ extern int pthread_setschedprio (pthread_t __target_thread, int __prio) __THROW; +#ifdef __USE_GNU +/* Get thread name visible in the kernel and its interfaces. */ +extern int pthread_getname_np (pthread_t __target_thread, char *__buf, + size_t __buflen) + __THROW __nonnull ((2)); + +/* Set thread name visible in the kernel and its interfaces. */ +extern int pthread_setname_np (pthread_t __target_thread, __const char *__name) + __THROW __nonnull ((2)); +#endif + + #ifdef __USE_UNIX98 /* Determine level of concurrency. */ extern int pthread_getconcurrency (void) __THROW; |