29package com.jogamp.opengl.test.junit.jogl.acore;
31import java.io.IOException;
33import com.jogamp.opengl.GLProfile;
36import org.junit.FixMethodOrder;
37import org.junit.runners.MethodSorters;
39import com.jogamp.common.os.Platform;
52@FixMethodOrder(MethodSorters.NAME_ASCENDING)
56 public
void test02TwoThreads() throws InterruptedException {
57 runJOGLTasks(2,
true);
61 public
void test04FourThreads() throws InterruptedException {
62 runJOGLTasks(4,
true);
66 public
void test16SixteenThreads() throws InterruptedException {
67 if( Platform.getCPUFamily() != Platform.CPUFamily.ARM &&
68 Platform.getOSType() != Platform.OSType.WINDOWS ) {
69 runJOGLTasks(16,
true);
71 runJOGLTasks( 6,
true);
75 public static void main(
final String args[])
throws IOException {
76 for(
int i=0; i<args.length; i++) {
77 if(args[i].equals(
"-time")) {
80 duration = Integer.parseInt(args[i]);
81 }
catch (
final Exception ex) { ex.printStackTrace(); }
85 org.junit.runner.JUnitCore.
main(tstname);
Concurrent and lock-free initialization and rendering using exclusive NEWT Display EDT instances,...
Concurrent initialization and lock-free rendering using shared NEWT Display EDT instances.
static void main(final String args[])