diff options
Diffstat (limited to 'cpp/test/IceUtil/thread/CreateTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/CreateTest.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cpp/test/IceUtil/thread/CreateTest.cpp b/cpp/test/IceUtil/thread/CreateTest.cpp index a1ea843fb5a..04f9dc2ad42 100644 --- a/cpp/test/IceUtil/thread/CreateTest.cpp +++ b/cpp/test/IceUtil/thread/CreateTest.cpp @@ -25,13 +25,13 @@ class CreateTestThread : public Thread public: CreateTestThread() : - threadran(false) + threadran(false) { } virtual void run() { - threadran = true; + threadran = true; } bool threadran; @@ -49,16 +49,16 @@ CreateTest::run() { for(int i = 0; i < 4096 ; ++i) { - CreateTestThreadPtr t = new CreateTestThread(); - ThreadControl control = t->start(); - control.join(); - test(t->threadran); - if((i % 256) == 0) - { - char buf[5]; - sprintf(buf, "%04d", i); - cout << buf << "" << flush; - } + CreateTestThreadPtr t = new CreateTestThread(); + ThreadControl control = t->start(); + control.join(); + test(t->threadran); + if((i % 256) == 0) + { + char buf[5]; + sprintf(buf, "%04d", i); + cout << buf << "" << flush; + } } cout << " " << flush; } |