Guest User

Untitled

a guest
Jul 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. pthread_once_t; /* one-time initialization control context */
  2. typedef struct
  3. {
  4. int __detachstate; /* JOINABLE or not */
  5. int __schedpolicy; /* SCHED_FIFO or SCHED_RR or SCHED_OTHER */
  6. struct sched_param __schedparam; /* pthread PRIORITY in RR or FIFO schedule */
  7. int __inheritsched; /* INHERIT or not */
  8. int __scope; /* in SYSTEM or PROCESS */
  9. size_t __guardsize; /* protection size */
  10. int __stackaddr_set; /* USER STACK or not */
  11. void *__stackaddr; /* stack address */
  12. unsigned long int __stacksize; /* stack size */
  13. }pthread_attr_t; /* thread attributes object */
  14. pthread_mutex_t ; /* mutex */
  15. pthread_mutexattr_t; /* mutex attributes object */
  16. pthread_cond_t; /* condition variable */
  17. pthread_condattr_t; /* conditin variable attributes object */
  18. pthread_key_t; /* key for thread-specific data */
  19. pthread_t; /* thread identifer */
  20. pthread_rwlock_t; /* read-write lock */
  21. pthread_rwlockattr_t; /* read-write lock attributes object */
  22.  
  23.  
  24. sem_t; /* Posix semaphores */
  25. ...
  26.  
  27. //reference: TLPI(the linux programming interface 3rd)
Add Comment
Please, Sign In to add comment