Showing the changes to src/core/util_thread.cpp (1 of 20 files). Show all
Unified · Split
| @@ -68,11 +68,11 @@ XThread::XThread( ) · 67 unmodified lines | |||
| 68 | XThread::~XThread( ) | 68 | XThread::~XThread( ) |
| 69 | { | 69 | { |
| 70 | #if defined(__PLATFORM_MACOSX__) || defined(__PLATFORM_LINUX__) || defined(__WINDOWS_PTHREAD__) | 70 | #if defined(__PLATFORM_MACOSX__) || defined(__PLATFORM_LINUX__) || defined(__WINDOWS_PTHREAD__) |
| 71 | // can't self-terminate (much like the Terminator) | 71 | // can't self-terminate (much like the Terminator) |
| 72 | bool is_self_thread = (thread == pthread_self()); | 72 | bool is_self_thread = (thread == pthread_self()); |
| 73 | #elif defined(__PLATFORM_WIN32__) | 73 | #elif defined(__PLATFORM_WIN32__) |
| 74 | // ignore for now | 74 | // ignore for now |
| 75 | bool is_self_thread = false; | 75 | bool is_self_thread = false; |
| 76 | #endif | 76 | #endif |
| 77 | 77 | ||
| 78 | // if our thread not NULL and this destructor is NOT being called on it | 78 | // if our thread not NULL and this destructor is NOT being called on it |
| @@ -236,11 +236,11 @@ XWriteThread * XWriteThread::shared() · 157 unmodified lines | |||
| 236 | { | 236 | { |
| 237 | // static XWriteThread s_defaultWriteThread; | 237 | // static XWriteThread s_defaultWriteThread; |
| 238 | 238 | ||
| 239 | // check | 239 | // check |
| 240 | if( o_defaultWriteThread == NULL ) | 240 | if( o_defaultWriteThread == NULL ) |
| 241 | o_defaultWriteThread = new XWriteThread(); | 241 | o_defaultWriteThread = new XWriteThread(); |
| 242 | 242 | ||
| 243 | return o_defaultWriteThread; | 243 | return o_defaultWriteThread; |
| 244 | } | 244 | } |
| 245 | 245 | ||
| 246 | 246 | ||