summaryrefslogtreecommitdiff
path: root/jurt/test/com
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-08-20 08:23:36 +0000
committerRüdiger Timm <rt@openoffice.org>2004-08-20 08:23:36 +0000
commit7b9ead88548ace7aa0615929db762c09c3937e8b (patch)
tree4d9203ee42f6c20dde337b306121fd78fdd99930 /jurt/test/com
parentceeb1b0ca63958986106f5f893030cbae1f4ac87 (diff)
INTEGRATION: CWS sb21 (1.11.58); FILE MERGED
2004/08/03 15:35:33 sb 1.11.58.1: #i32131# Redesigned ThreadId to not depend on hashCode values, which are not unique.
Diffstat (limited to 'jurt/test/com')
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
index f2da08b63c06..7c896831e434 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ThreadPool_Test.java,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: vg $ $Date: 2003-10-09 10:15:17 $
+ * last change: $Author: rt $ $Date: 2004-08-20 09:23:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -145,7 +145,7 @@ public class ThreadPool_Test extends ComplexTestCase {
public void testThreadAsync() throws InterruptedException {
TestWorkAt workAt = new TestWorkAt();
- ThreadId threadId = new ThreadId();
+ ThreadId threadId = ThreadId.createFresh();
// queue asyncs
for(int i = 0; i < TestWorkAt.MESSAGES; ++ i) {
@@ -166,7 +166,7 @@ public class ThreadPool_Test extends ComplexTestCase {
public void testDynamicThreadSync() throws InterruptedException {
TestWorkAt workAt = new TestWorkAt();
- ThreadId threadId = new ThreadId();
+ ThreadId threadId = ThreadId.createFresh();
// queue asyncs
for(int i = 0; i < TestWorkAt.MESSAGES; ++ i) {
@@ -225,7 +225,7 @@ public class ThreadPool_Test extends ComplexTestCase {
public void testDynamicThreadAsyncSyncOrder() throws InterruptedException {
TestWorkAt workAt = new TestWorkAt();
- ThreadId threadId = new ThreadId();
+ ThreadId threadId = ThreadId.createFresh();
// queue asyncs
for(int i = 0; i < TestWorkAt.MESSAGES; ++ i) {
@@ -297,7 +297,7 @@ public class ThreadPool_Test extends ComplexTestCase {
TestWorkAt workAt = new TestWorkAt();
for (int i = 0; i < TestWorkAt.MESSAGES; ++i) {
Thread.yield(); // force scheduling
- ThreadId threadID = new ThreadId();
+ ThreadId threadID = ThreadId.createFresh();
putJob(workAt, true, threadID, "increment");
putJob(workAt, false, threadID, "increment");
}
@@ -379,7 +379,7 @@ public class ThreadPool_Test extends ComplexTestCase {
public void testAsyncSync() throws InterruptedException {
TestWorkAt workAt = new TestWorkAt();
- ThreadId threadId = new ThreadId();
+ ThreadId threadId = ThreadId.createFresh();
MyWorkAt myWorkAt = new MyWorkAt( workAt );
// queue asyncs