diff options
Diffstat (limited to 'cpp/test/IceUtil/thread/StartTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/StartTest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/thread/StartTest.cpp b/cpp/test/IceUtil/thread/StartTest.cpp index c722df22672..791ffba4b27 100644 --- a/cpp/test/IceUtil/thread/StartTest.cpp +++ b/cpp/test/IceUtil/thread/StartTest.cpp @@ -63,4 +63,17 @@ StartTest::run() gotException = true; } test(gotException); + + // + // Now let's create a bunch of short-lived threads + // + for(int i = 0; i < 50; i++) + { + for(int j = 0; j < 50; j++) + { + Thread* t = new StartTestThread; + t->start().detach(); + } + ThreadControl::sleep(Time::milliSeconds(5)); + } } |