Panda3D
|
00001 // Filename: threadPriority.h 00002 // Created by: drose (08Aug02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef THREADPRIORITY_H 00016 #define THREADPRIORITY_H 00017 00018 #include "pandabase.h" 00019 00020 BEGIN_PUBLISH 00021 //////////////////////////////////////////////////////////////////// 00022 // An enumerated type used by Thread to specify a suggested relative 00023 // priority for a particular thread. 00024 //////////////////////////////////////////////////////////////////// 00025 enum ThreadPriority { 00026 TP_low, 00027 TP_normal, 00028 TP_high, 00029 TP_urgent 00030 }; 00031 END_PUBLISH 00032 00033 EXPCL_PANDA_PIPELINE ostream & 00034 operator << (ostream &out, ThreadPriority pri); 00035 EXPCL_PANDA_PIPELINE istream & 00036 operator >> (istream &in, ThreadPriority &pri); 00037 00038 00039 #endif