diff options
Diffstat (limited to 'libraries/eina/src/include/eina_sched.h')
-rw-r--r-- | libraries/eina/src/include/eina_sched.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libraries/eina/src/include/eina_sched.h b/libraries/eina/src/include/eina_sched.h deleted file mode 100644 index 43f32b9..0000000 --- a/libraries/eina/src/include/eina_sched.h +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /* EINA - EFL data type library | ||
2 | * Copyright (C) 2010 ProFUSION embedded systems | ||
3 | * | ||
4 | * This library is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU Lesser General Public | ||
6 | * License as published by the Free Software Foundation; either | ||
7 | * version 2.1 of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This library is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * Lesser General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library; | ||
16 | * if not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #ifndef EINA_SCHED_H_ | ||
20 | #define EINA_SCHED_H_ | ||
21 | |||
22 | #include "eina_types.h" | ||
23 | |||
24 | |||
25 | /** | ||
26 | * @brief Lower priority of current thread. | ||
27 | * | ||
28 | * It's used by worker threads so they use up background cpu and do not stall | ||
29 | * the main thread If current thread is running with real-time priority, we | ||
30 | * decrease our priority by @c RTNICENESS. This is done in a portable way. | ||
31 | * | ||
32 | * Otherwise (we are running with SCHED_OTHER policy) there's no portable way to | ||
33 | * set the nice level on current thread. In Linux, it does work and it's the | ||
34 | * only one that is implemented as of now. In this case the nice level is | ||
35 | * incremented on this thread by @c NICENESS. | ||
36 | */ | ||
37 | EAPI void eina_sched_prio_drop(void); | ||
38 | |||
39 | #endif /* EINA_SCHED_H_ */ | ||