summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Thread.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-06-23 21:17:04 +0000
committerMarc Laukien <marc@zeroc.com>2002-06-23 21:17:04 +0000
commit59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch)
treec3ed292df270f11157decb83827d9af4144db52d /cpp/src/IceUtil/Thread.cpp
parentfile run.py was initially added on branch location. (diff)
downloadice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2
ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz
ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip
removed spaces after keywords
Diffstat (limited to 'cpp/src/IceUtil/Thread.cpp')
-rw-r--r--cpp/src/IceUtil/Thread.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp
index cfb4f11c0f0..31ba4c36115 100644
--- a/cpp/src/IceUtil/Thread.cpp
+++ b/cpp/src/IceUtil/Thread.cpp
@@ -9,7 +9,7 @@
// **********************************************************************
#include <IceUtil/Thread.h>
-#include <IceUtil/Exception.h>
+#include <IceUtil/Exception.h>
#include <IceUtil/Time.h>
using namespace std;
@@ -23,7 +23,7 @@ IceUtil::ThreadControl::ThreadControl() :
HANDLE proc = GetCurrentProcess();
HANDLE current = GetCurrentThread();
int rc = DuplicateHandle(proc, current, proc, &_handle->handle, SYNCHRONIZE, TRUE, 0);
- if (rc == 0)
+ if(rc == 0)
{
throw SyscallException(SyscallException::errorToString(GetLastError()), __FILE__, __LINE__);
}
@@ -57,7 +57,7 @@ void
IceUtil::ThreadControl::join()
{
int rc = WaitForSingleObject(_handle->handle, INFINITE);
- if (rc != WAIT_OBJECT_0)
+ if(rc != WAIT_OBJECT_0)
{
throw SyscallException(SyscallException::errorToString(GetLastError()), __FILE__, __LINE__);
}
@@ -136,7 +136,7 @@ IceUtil::Thread::start()
__incRef();
_handle->handle = (HANDLE)_beginthreadex(0, 0, (unsigned (__stdcall*)(void*))startHook, (LPVOID)this, 0, &_id);
- if (_handle->handle == 0)
+ if(_handle->handle == 0)
{
__decRef();
throw SyscallException(SyscallException::errorToString(GetLastError()), __FILE__, __LINE__);
@@ -205,7 +205,7 @@ IceUtil::ThreadControl::join()
{
void* ignore = 0;
int rc = pthread_join(_id, &ignore);
- if (rc != 0)
+ if(rc != 0)
{
throw SyscallException(strerror(rc), __FILE__, __LINE__);
}
@@ -276,7 +276,7 @@ IceUtil::Thread::start()
//
__incRef();
int rc = pthread_create(&_id, 0, startHook, this);
- if (rc != 0)
+ if(rc != 0)
{
__decRef();
throw SyscallException(strerror(rc), __FILE__, __LINE__);