diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/src/include/eina_sched.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/src/include/eina_sched.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libraries/eina/src/include/eina_sched.h b/libraries/eina/src/include/eina_sched.h new file mode 100644 index 0000000..43f32b9 --- /dev/null +++ b/libraries/eina/src/include/eina_sched.h | |||
@@ -0,0 +1,39 @@ | |||
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_ */ | ||