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 | 68 | XThread::~XThread( ) |
| 69 | 69 | { |
| 70 | 70 | #if defined(__PLATFORM_MACOSX__) || defined(__PLATFORM_LINUX__) || defined(__WINDOWS_PTHREAD__) |
| 71 | − // can't self-terminate (much like the Terminator) | |
| 72 | − bool is_self_thread = (thread == pthread_self()); | |
| 71 | + // can't self-terminate (much like the Terminator) | |
| 72 | + bool is_self_thread = (thread == pthread_self()); | |
| 73 | 73 | #elif defined(__PLATFORM_WIN32__) |
| 74 | − // ignore for now | |
| 75 | − bool is_self_thread = false; | |
| 74 | + // ignore for now | |
| 75 | + bool is_self_thread = false; | |
| 76 | 76 | #endif |
| 77 | 77 | |
| 78 | 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 | 237 | // static XWriteThread s_defaultWriteThread; |
| 238 | 238 | |
| 239 | − // check | |
| 240 | − if( o_defaultWriteThread == NULL ) | |
| 241 | − o_defaultWriteThread = new XWriteThread(); | |
| 239 | + // check | |
| 240 | + if( o_defaultWriteThread == NULL ) | |
| 241 | + o_defaultWriteThread = new XWriteThread(); | |
| 242 | 242 | |
| 243 | − return o_defaultWriteThread; | |
| 243 | + return o_defaultWriteThread; | |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | |