JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT Class Reference

Concurrent and lock-free initialization and rendering using exclusive NEWT Display EDT instances. More...

Inheritance diagram for com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT:

Public Member Functions

void test02TwoThreads () throws InterruptedException
 
void test02FourThreads () throws InterruptedException
 
void test16SixteenThreads () throws InterruptedException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
int getMaxTestNameLen ()
 
String getSnapshotFilename (final int sn, String postSNDetail, final GLCapabilitiesImmutable caps, final int width, final int height, final boolean sinkHasAlpha, String fileSuffix, final String destPath)
 
void snapshot (final int sn, final String postSNDetail, final GL gl, final GLReadBufferUtil readBufferUtil, final String fileSuffix, final String destPath)
 Takes a snapshot of the drawable's current front framebuffer. More...
 

Static Public Member Functions

static void main (final String args[]) throws IOException
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.jogl.acore.InitConcurrentBaseNEWT
static void initClass ()
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
static void setResetXRandRIfX11AfterClass ()
 
static int resetXRandRIfX11 ()
 Iterates through all outputs and sets the preferred mode and normal rotation using RandR 1.3. More...
 
static int processCommand (final String[] cmdline, final OutputStream outstream, final StringBuilder outstring, final String outPrefix)
 
static final void oneTimeSetUpUITest ()
 
static final void oneTimeTearDownUITest ()
 

Additional Inherited Members

- Protected Member Functions inherited from com.jogamp.opengl.test.junit.jogl.acore.InitConcurrentBaseNEWT
void runJOGLTasks (final int num, final boolean reuse) throws InterruptedException
 
- Static Protected Member Functions inherited from com.jogamp.opengl.test.junit.jogl.acore.InitConcurrentBaseNEWT
static boolean done (final JOGLTask[] tasks)
 
static String doneDump (final JOGLTask[] tasks)
 
static boolean isDead (final Thread[] threads)
 
static String isAliveDump (final Thread[] threads)
 

Detailed Description

Concurrent and lock-free initialization and rendering using exclusive NEWT Display EDT instances.

Rendering is always lock-free and independent of the EDT, using exclusive NEWT Display instances perform lifecycle actions (window creation etc) w/o locking.

Each test is decorated w/ GLProfile#shutdown() to ensure that implicit GLProfile#initSingleton() is also being tested.

Definition at line 53 of file TestInitConcurrent02NEWT.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT.main ( final String  args[]) throws IOException
static

Definition at line 88 of file TestInitConcurrent02NEWT.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test02FourThreads()

void com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT.test02FourThreads ( ) throws InterruptedException

Definition at line 66 of file TestInitConcurrent02NEWT.java.

◆ test02TwoThreads()

void com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT.test02TwoThreads ( ) throws InterruptedException

Definition at line 57 of file TestInitConcurrent02NEWT.java.

◆ test16SixteenThreads()

void com.jogamp.opengl.test.junit.jogl.acore.TestInitConcurrent02NEWT.test16SixteenThreads ( ) throws InterruptedException

Definition at line 75 of file TestInitConcurrent02NEWT.java.


The documentation for this class was generated from the following file: