C语言互斥mutex锁

[root@localhost pthread]# grep -i  pthread_mutex  pthreadtest.e 

  struct __pthread_mutex_s

} pthread_mutex_t;

} pthread_mutexattr_t;

  PTHREAD_MUTEX_TIMED_NP,

  PTHREAD_MUTEX_RECURSIVE_NP,

  PTHREAD_MUTEX_ERRORCHECK_NP,

  PTHREAD_MUTEX_ADAPTIVE_NP

  PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,

  PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,

  PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,

  PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL

  PTHREAD_MUTEX_STALLED,

  PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,

  PTHREAD_MUTEX_ROBUST,

  PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST

extern int pthread_mutex_init (pthread_mutex_t *__mutex,

          __const pthread_mutexattr_t *__mutexattr)

extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)

extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)

extern int pthread_mutex_lock (pthread_mutex_t *__mutex)

extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,

extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)

extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *

extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,

extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)

extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)

extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)

extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *

extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,

extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict

extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)

extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *

extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,

extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *

extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,

extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,

extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,

         pthread_mutex_t *__restrict __mutex)

       pthread_mutex_t *__restrict __mutex,


 pthreadtest.e 文件的生成参考:http://my.oschina.net/u/177808/blog/298377


你可能感兴趣的:(C语言互斥mutex锁)