*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> pthread_set_name_np (3)              



NAME    [Toc]    [Back]

     pthread_set_name_np - set the name of a thread

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>
     #include <pthread_np.h>

     pthread_set_name_np(pthread_t thread, char *name);

DESCRIPTION    [Toc]    [Back]

     The  pthread_set_name_np()  function  associates  name  with
thread.  This can
     be  useful  for  debugging,  as the name is displayed in the
thread status as
     displayed when the process receives the SIGINFO signal.

     The string pointed to by name is copied, and so need not  be
valid for the
     life of the thread.

SEE ALSO    [Toc]    [Back]


STANDARDS    [Toc]    [Back]

     The  pthread_set_name_np()  function is non-portable and may
not be supported
 with the above semantics on other POSIX systems.

OpenBSD     3.6                        December     19,      1999
[ Back ]
 Similar pages
Name OS Title
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
pthread_join Tru64 Causes the calling thread to wait for the termination of the specified thread
pthread_cancel Tru64 Allows a thread to request a thread to terminate execution
pthread_getname_np Tru64 Obtain the object name from the thread object of an existing thread
pthread_equal Tru64 Compares one thread identifier to another thread identifier
pthread_setname_np Tru64 Changes the object name in the thread object for an existing thread
pthread_set_name_np FreeBSD set the thread name
pthread_equal OpenBSD compare thread IDs
pthread_detach OpenBSD detach a thread
pthread_cond_timedwait Tru64 Causes a thread to wait for the
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service