aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-15 03:16:15 +0100
committerSven Gothel <[email protected]>2023-01-15 03:16:15 +0100
commit1ff1f894b3edc4c241b580a38e8f1439ad2c531e (patch)
treee331813f6468256cac5a883c40cef278db70307c /src/junit/com/jogamp
parent3818ed8cd00af3b145d9c95ca2287dc0a2d57957 (diff)
TestRecursiveLock01, TestRecursiveThreadGroupLock01: 'yield()' -> 'yield_thread()' to avoid potential Java>17 collision (JEP 361)
Diffstat (limited to 'src/junit/com/jogamp')
-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+"]");