pthread.h 563 B

123456789101112131415161718192021222324252627
  1. /*
  2. * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef __ESP_PLATFORM_PTHREAD_H__
  7. #define __ESP_PLATFORM_PTHREAD_H__
  8. #include <sys/types.h>
  9. #include <sys/time.h>
  10. #include <sys/features.h>
  11. #include_next <pthread.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. int pthread_condattr_getclock(const pthread_condattr_t * attr, clockid_t * clock_id);
  16. int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif // __ESP_PLATFORM_PTHREAD_H__