Changeset 3370
- Timestamp:
- 02/06/10 11:50:48 (6 weeks ago)
- Location:
- Core/branches/0075_TR_SCRIPTING/Threading/src
- Files:
-
- 3 modified
-
Thread_posix.cpp (modified) (2 diffs)
-
Thread_posix.hpp (modified) (1 diff)
-
Thread_win32.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Core/branches/0075_TR_SCRIPTING/Threading/src/Thread_posix.cpp
r3327 r3370 38 38 #include <unistd.h> 39 39 #include <sys/errno.h> 40 #include <assert.h> 40 41 41 42 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ … … 166 167 167 168 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 169 bool 170 Thread_posix::NativeThreadId_posix::operator<(const I_Thread::ThreadId::I_NativeThreadId& _id) const 171 { 172 const NativeThreadId_posix* const pNativeThreadId_posix = dynamic_cast<const NativeThreadId_posix*>(&_id); 173 assert(pNativeThreadId_posix != NULL); 174 return (m_nativeThreadId < pNativeThreadId_posix->m_nativeThreadId); 175 } 176 177 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 168 178 I_Thread::ThreadId::I_NativeThreadId* 169 179 Thread_posix::NativeThreadId_posix::clone() const -
Core/branches/0075_TR_SCRIPTING/Threading/src/Thread_posix.hpp
r3327 r3370 79 79 virtual bool operator==(const I_NativeThreadId&) const; 80 80 virtual bool operator!=(const I_NativeThreadId&) const; 81 virtual bool operator<(const I_NativeThreadId& _otherId) const; 81 82 virtual I_NativeThreadId* clone() const; 82 83 virtual std::string toString() const; -
Core/branches/0075_TR_SCRIPTING/Threading/src/Thread_win32.cpp
r3335 r3370 78 78 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 79 79 #ifndef USE_CPP_THREADING 80 extern "C" 80 extern "C" 81 81 { 82 82 void threadFunctionC(void* _pThis) … … 186 186 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 187 187 bool 188 Thread_win32::NativeThreadId_win32::operator <(const I_Thread::ThreadId::I_NativeThreadId& _id) const188 Thread_win32::NativeThreadId_win32::operator<(const I_Thread::ThreadId::I_NativeThreadId& _id) const 189 189 { 190 190 const NativeThreadId_win32* const pNativeThreadId_win32 = dynamic_cast<const NativeThreadId_win32*>(&_id);
