Changeset 3335
- Timestamp:
- 01/30/10 15:52:29 (7 weeks ago)
- Location:
- Core/branches/0075_TR_SCRIPTING/Threading
- Files:
-
- 3 modified
-
I_Thread.hpp (modified) (2 diffs)
-
src/Thread_win32.cpp (modified) (2 diffs)
-
src/Thread_win32.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Core/branches/0075_TR_SCRIPTING/Threading/I_Thread.hpp
r3327 r3335 95 95 virtual bool operator==(const I_NativeThreadId& _otherId) const = 0; 96 96 virtual bool operator!=(const I_NativeThreadId& _otherId) const = 0; 97 virtual bool operator<(const I_NativeThreadId& _otherId) const = 0; 97 98 virtual I_NativeThreadId* clone() const = 0; 98 99 virtual std::string toString() const = 0; … … 115 116 bool operator== (const ThreadId& _otherId) const {return (m_pNativeThreadId == _otherId.m_pNativeThreadId) || ( m_pNativeThreadId && _otherId.m_pNativeThreadId && (*m_pNativeThreadId == *_otherId.m_pNativeThreadId));} 116 117 bool operator!= (const ThreadId& _otherId) const {return (m_pNativeThreadId != _otherId.m_pNativeThreadId) && (!m_pNativeThreadId || !_otherId.m_pNativeThreadId || (*m_pNativeThreadId != *_otherId.m_pNativeThreadId));} 118 bool operator< (const ThreadId& _otherId) const {return (m_pNativeThreadId < _otherId.m_pNativeThreadId); } 117 119 operator std::string () const {return m_pNativeThreadId ? m_pNativeThreadId->toString() : "";} 118 120 std::string toString() const {return m_pNativeThreadId ? m_pNativeThreadId->toString() : "";} -
Core/branches/0075_TR_SCRIPTING/Threading/src/Thread_win32.cpp
r3327 r3335 25 25 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 26 26 #ifdef THREADMODEL_WIN32 27 28 #include <assert.h> 27 29 28 30 #include "Thread_win32.hpp" … … 183 185 184 186 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 187 bool 188 Thread_win32::NativeThreadId_win32::operator <(const I_Thread::ThreadId::I_NativeThreadId& _id) const 189 { 190 const NativeThreadId_win32* const pNativeThreadId_win32 = dynamic_cast<const NativeThreadId_win32*>(&_id); 191 assert(pNativeThreadId_win32 != NULL); 192 return (m_nativeThreadId < pNativeThreadId_win32->m_nativeThreadId); 193 } 194 195 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 185 196 I_Thread::ThreadId::I_NativeThreadId* 186 197 Thread_win32::NativeThreadId_win32::clone() const -
Core/branches/0075_TR_SCRIPTING/Threading/src/Thread_win32.hpp
r3327 r3335 80 80 virtual bool operator==(const I_NativeThreadId& _otherId) const; 81 81 virtual bool operator!=(const I_NativeThreadId& _otherId) const; 82 virtual bool operator< (const I_NativeThreadId& _otherId) const; 82 83 virtual I_NativeThreadId* clone() const; 83 84 virtual std::string toString() const;
