Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

Split Close
Expand all
Collapse all
          --- old/usr/src/head/thread.h
          +++ new/usr/src/head/thread.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24   24   *
  25   25   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
       27 + *
       28 + * Copyright 2018 Joyent, Inc.
  27   29   */
  28   30  
  29   31  #ifndef _THREAD_H
  30   32  #define _THREAD_H
  31   33  
  32   34  /*
  33   35   * thread.h:
  34   36   * definitions needed to use the thread interface except synchronization.
  35   37   * use <synch.h> for thread synchronization.
  36   38   */
↓ open down ↓ 43 lines elided ↑ open up ↑
  80   82  extern int thr_suspend(thread_t);
  81   83  extern int thr_continue(thread_t);
  82   84  extern void thr_yield(void);
  83   85  extern int thr_setprio(thread_t, int);
  84   86  extern int thr_getprio(thread_t, int *);
  85   87  extern int thr_keycreate(thread_key_t *, void(*)(void *));
  86   88  extern int thr_keycreate_once(thread_key_t *, void(*)(void *));
  87   89  extern int thr_setspecific(thread_key_t, void *);
  88   90  extern int thr_getspecific(thread_key_t, void **);
  89   91  extern size_t thr_min_stack(void);
       92 +extern int thr_getname(thread_t, char *, size_t);
       93 +extern int thr_setname(thread_t, const char *);
  90   94  
  91   95  #endif /* _ASM */
  92   96  
  93   97  #define THR_MIN_STACK   thr_min_stack()
  94   98  /*
  95   99   * thread flags (one word bit mask)
  96  100   */
  97  101  /*
  98  102   * POSIX.1c Note:
  99  103   * THR_BOUND is defined same as PTHREAD_SCOPE_SYSTEM in <pthread.h>
↓ open down ↓ 29 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX