aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java6
-rw-r--r--src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java
index 7455618..e5456f4 100644
--- a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java
+++ b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java
@@ -57,7 +57,7 @@ public class TestRecursiveLock01 extends SingletonJunitCase {
}
}
- static void yield(final YieldMode mode) {
+ static void yield_thread(final YieldMode mode) {
switch(mode) {
case YIELD:
Thread.yield();
@@ -119,7 +119,7 @@ public class TestRecursiveLock01 extends SingletonJunitCase {
System.err.print("+");
}
while(l>0) l--;
- yield(yieldMode);
+ yield_thread(yieldMode);
} finally {
if(DEBUG) {
System.err.print("-");
@@ -151,7 +151,7 @@ public class TestRecursiveLock01 extends SingletonJunitCase {
System.err.print("+");
}
while(l>0) l--;
- yield(yieldMode);
+ yield_thread(yieldMode);
} finally {
if(DEBUG) {
System.err.print("-");
diff --git a/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java b/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java
index 30a0274..3cd40dd 100644
--- a/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java
+++ b/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java
@@ -53,7 +53,7 @@ public class TestRecursiveThreadGroupLock01 extends SingletonJunitCase {
}
}
- static void yield(final YieldMode mode) {
+ static void yield_thread(final YieldMode mode) {
switch(mode) {
case YIELD:
Thread.yield();
@@ -96,7 +96,7 @@ public class TestRecursiveThreadGroupLock01 extends SingletonJunitCase {
slaves[i].start();
}
while(slaveCounter<mark) {
- yield(yieldMode);
+ yield_thread(yieldMode);
}
}
} finally {
@@ -130,7 +130,7 @@ public class TestRecursiveThreadGroupLock01 extends SingletonJunitCase {
while(slaveCounter<mark) {
slaveCounter++;
} */
- yield(yieldMode);
+ yield_thread(yieldMode);
} finally {
if(DEBUG) {
System.err.println(tab+" "+name+" c "+slaveCounter+"]");