1 //
2 //  Copyright (C) 2010 Tim Blechmann
3 //
4 //  This program is free software; you can redistribute it and/or modify
5 //  it under the terms of the GNU General Public License as published by
6 //  the Free Software Foundation; either version 2 of the License, or
7 //  (at your option) any later version.
8 //
9 //  This program 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
12 //  GNU General Public License for more details.
13 //
14 //  You should have received a copy of the GNU General Public License
15 //  along with this program; see the file COPYING.  If not, write to
16 //  the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
17 //  Boston, MA 02110-1301, USA.
18 
19 #ifndef NOVA_TT_THREAD_PRITORITY_FALLBACK_HPP
20 #define NOVA_TT_THREAD_PRITORITY_FALLBACK_HPP
21 
22 #include <utility>
23 
24 namespace nova
25 {
26 
thread_priority(void)27 inline int thread_priority(void)
28 {
29     return 0;
30 }
31 
thread_priority_interval(void)32 inline std::pair<int, int> thread_priority_interval(void)
33 {
34     return std::make_pair(0, 0);
35 }
36 
thread_set_priority(int priority)37 inline bool thread_set_priority(int priority)
38 {
39     return false;
40 }
41 
42 }  /* namespace nova */
43 
44 #undef USE_PTHREAD
45 
46 #endif /* NOVA_TT_THREAD_PRITORITY_FALLBACK_HPP */
47