pthread_scheduling.h
1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup pthread
* @{
* @file
* @brief Scheduling parameters and policies of pthreads.
* @note None of these functions are implemented, yet.
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef PTHREAD_SCHEDULING_H
#define PTHREAD_SCHEDULING_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Unimplemented.
* @note Due to the native of RIOT it is unlikely that this function will ever be implemented.
* @param[in] target_thread Unused
* @param[in] policy Unused
* @param[in] param Unused
* @returns The function is unimplemented. Using it will cause a link time error.
*/
int pthread_setschedparam(pthread_t target_thread, int policy, const struct sched_param *param);
/**
* @brief Unimplemented.
* @note Due to the native of RIOT it is unlikely that this function will ever be implemented.
* @param[in] target_thread Unused
* @param[in,out] policy Unused
* @param[out] param Unused
* @returns The function is unimplemented. Using it will cause a link time error.
*/
int pthread_getschedparam(pthread_t target_thread, int *policy, struct sched_param *param);
/**
* @brief Unimplemented.
* @note Due to the native of RIOT it is unlikely that this function will ever be implemented.
* @param[in] target_thread Unused
* @param[in] prio Unused
* @returns The function is unimplemented. Using it will cause a link time error.
*/
int pthread_setschedprio(pthread_t target_thread, int prio);
#ifdef __cplusplus
}
#endif
#endif /* PTHREAD_SCHEDULING_H */
/**
* @}
*/