
com.anarsoft.vmlens.concurrent.junit.internal.ParallelExecutorThread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of concurrent-junit Show documentation
Show all versions of concurrent-junit Show documentation
A http://junit.org test runner to run concurrent unit tests.
package com.anarsoft.vmlens.concurrent.junit.internal;
public class ParallelExecutorThread extends Thread {
private final ConcurrentStatement concurrentStatement;
public volatile boolean execute = false;
public ParallelExecutorThread(ConcurrentStatement concurrentStatement) {
super();
this.concurrentStatement = concurrentStatement;
}
@Override
public void run() {
try{
while( ! execute )
{
Thread.sleep(1);
}
concurrentStatement.evaluate();
}
catch(Exception e)
{
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy