2022-06-17 16:59:56 +02:00
|
|
|
/*
|
2024-11-08 16:29:20 +02:00
|
|
|
* SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
|
2022-06-17 16:59:56 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2018-05-29 11:25:24 +02:00
|
|
|
#ifndef __ESP_PLATFORM_PTHREAD_H__
|
|
|
|
#define __ESP_PLATFORM_PTHREAD_H__
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/time.h>
|
2019-04-10 21:05:10 +07:00
|
|
|
#include <sys/features.h>
|
2018-08-10 16:22:27 +05:30
|
|
|
|
2018-05-29 11:25:24 +02:00
|
|
|
#include_next <pthread.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int pthread_condattr_getclock(const pthread_condattr_t * attr, clockid_t * clock_id);
|
|
|
|
|
|
|
|
int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id);
|
|
|
|
|
2024-11-08 16:29:20 +02:00
|
|
|
/* Dynamic Thread Scheduling Parameters Access */
|
|
|
|
int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param);
|
|
|
|
|
|
|
|
int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param);
|
|
|
|
|
|
|
|
/* Set Scheduling Priority of a Thread */
|
|
|
|
int pthread_setschedprio(pthread_t thread, int prio);
|
|
|
|
|
|
|
|
int sched_get_priority_min(int policy);
|
|
|
|
|
|
|
|
int sched_get_priority_max(int policy);
|
|
|
|
|
2018-05-29 11:25:24 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // __ESP_PLATFORM_PTHREAD_H__
|