pthread_cond.h 626 B

1234567891011121314151617181920212223
  1. #ifndef __PTHREAD_COND_H__
  2. #define __PTHREAD_COND_H__
  3. #include <pthread.h>
  4. #include <sys/time.h>
  5. struct pthread_cond
  6. {
  7. pthread_mutex_t *mutex;
  8. };
  9. typedef struct pthread_cond pthread_cond_t;
  10. int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);
  11. int pthread_cond_destroy(pthread_cond_t *cond);
  12. int pthread_cond_broadcast(pthread_cond_t *cond);
  13. int pthread_cond_signal(pthread_cond_t *cond);
  14. int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
  15. int pthread_cond_timedwait(pthread_cond_t *cond,
  16. pthread_mutex_t * mutex,
  17. const struct timespec *abstime);
  18. #endif