Panda3D
threadPriority.h
1 // Filename: threadPriority.h
2 // Created by: drose (08Aug02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef THREADPRIORITY_H
16 #define THREADPRIORITY_H
17 
18 #include "pandabase.h"
19 
20 BEGIN_PUBLISH
21 ////////////////////////////////////////////////////////////////////
22 // An enumerated type used by Thread to specify a suggested relative
23 // priority for a particular thread.
24 ////////////////////////////////////////////////////////////////////
25 enum ThreadPriority {
26  TP_low,
27  TP_normal,
28  TP_high,
29  TP_urgent
30 };
31 END_PUBLISH
32 
33 EXPCL_PANDA_PIPELINE ostream &
34 operator << (ostream &out, ThreadPriority pri);
35 EXPCL_PANDA_PIPELINE istream &
36 operator >> (istream &in, ThreadPriority &pri);
37 
38 
39 #endif