00001 // Filename: threadDummyImpl.I 00002 // Created by: drose (09Aug02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: ThreadDummyImpl::Constructor 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE ThreadDummyImpl:: 00026 ThreadDummyImpl(Thread *) { 00027 } 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Function: ThreadDummyImpl::Destructor 00031 // Access: Public 00032 // Description: 00033 //////////////////////////////////////////////////////////////////// 00034 INLINE ThreadDummyImpl:: 00035 ~ThreadDummyImpl() { 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: ThreadDummyImpl::start 00040 // Access: Public 00041 // Description: 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE bool ThreadDummyImpl:: 00044 start(ThreadPriority, bool, bool) { 00045 return false; 00046 } 00047 00048 //////////////////////////////////////////////////////////////////// 00049 // Function: ThreadDummyImpl::join 00050 // Access: Public 00051 // Description: 00052 //////////////////////////////////////////////////////////////////// 00053 INLINE void ThreadDummyImpl:: 00054 join() { 00055 } 00056 00057 //////////////////////////////////////////////////////////////////// 00058 // Function: ThreadDummyImpl::prepare_for_exit 00059 // Access: Public 00060 // Description: 00061 //////////////////////////////////////////////////////////////////// 00062 INLINE void ThreadDummyImpl:: 00063 prepare_for_exit() { 00064 } 00065 00066 //////////////////////////////////////////////////////////////////// 00067 // Function: ThreadDummyImpl::Constructor 00068 // Access: Public 00069 // Description: 00070 //////////////////////////////////////////////////////////////////// 00071 INLINE Thread *ThreadDummyImpl:: 00072 get_current_thread() { 00073 return NULL; 00074 } 00075 00076 //////////////////////////////////////////////////////////////////// 00077 // Function: ThreadDummyImpl::is_threading_supported 00078 // Access: Public, Static 00079 // Description: 00080 //////////////////////////////////////////////////////////////////// 00081 INLINE bool ThreadDummyImpl:: 00082 is_threading_supported() { 00083 return false; 00084 } 00085 00086 //////////////////////////////////////////////////////////////////// 00087 // Function: ThreadDummyImpl::sleep 00088 // Access: Public, Static 00089 // Description: 00090 //////////////////////////////////////////////////////////////////// 00091 INLINE void ThreadDummyImpl:: 00092 sleep(double) { 00093 }