diff options
author | Joe George <joe@zeroc.com> | 2017-05-02 13:58:41 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2017-05-02 15:42:34 -0400 |
commit | cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch) | |
tree | 5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/src/Ice/Thread.cpp | |
parent | Removed trailing whitespace generated by slice2js (diff) | |
download | ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2 ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip |
Remove trailing whitespace
Diffstat (limited to 'cpp/src/Ice/Thread.cpp')
-rw-r--r-- | cpp/src/Ice/Thread.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/cpp/src/Ice/Thread.cpp b/cpp/src/Ice/Thread.cpp index 93622da09f3..1c6cc22dd50 100644 --- a/cpp/src/Ice/Thread.cpp +++ b/cpp/src/Ice/Thread.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#ifdef __sun +#ifdef __sun // // Solaris 10 bug: it's supposed to be defined in pthread.h // @@ -85,7 +85,7 @@ IceUtil::ThreadControl::detach() { throw BadThreadControlException(__FILE__, __LINE__); } - + try { _thread->detach(); @@ -177,7 +177,7 @@ WINAPI startHook(void* arg) } thread->_done(); - + return 0; } @@ -218,7 +218,7 @@ IceUtil::Thread::start(size_t, int) _started = true; _running = true; - + return ThreadControl(_thread); } @@ -304,7 +304,7 @@ IceUtil::ThreadControl::join() { throw ThreadSyscallException(__FILE__, __LINE__, GetLastError()); } - + detach(); } @@ -315,7 +315,7 @@ IceUtil::ThreadControl::detach() { throw BadThreadControlException(__FILE__, __LINE__); } - + if(CloseHandle(_handle) == 0) { throw ThreadSyscallException(__FILE__, __LINE__, GetLastError()); @@ -412,7 +412,7 @@ WINAPI startHook(void* arg) } thread->_done(); - + return 0; } @@ -449,14 +449,14 @@ IceUtil::Thread::start(size_t stackSize, int priority) // __decRef(). // __incRef(); - + unsigned int id; - _handle = + _handle = reinterpret_cast<HANDLE>( - _beginthreadex(0, - static_cast<unsigned int>(stackSize), - startHook, this, - CREATE_SUSPENDED, + _beginthreadex(0, + static_cast<unsigned int>(stackSize), + startHook, this, + CREATE_SUSPENDED, &id)); _id = id; assert(_handle != (HANDLE)-1L); @@ -477,7 +477,7 @@ IceUtil::Thread::start(size_t stackSize, int priority) _started = true; _running = true; - + return ThreadControl(_handle, _id); } @@ -625,7 +625,7 @@ IceUtil::Thread::~Thread() { } -extern "C" +extern "C" { static void* startHook(void* arg) @@ -658,7 +658,7 @@ startHook(void* arg) } thread->_done(); - + return 0; } } |