GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.util.InterruptSource.Thread Class Reference

java.lang.Thread specialization implementing InterruptSource to track java.lang.Thread#interrupt() calls. More...

Inheritance diagram for com.jogamp.common.util.InterruptSource.Thread:
Collaboration diagram for com.jogamp.common.util.InterruptSource.Thread:

Public Member Functions

 Thread ()
 See Thread#Thread( for details. More...
 
 Thread (final Runnable target)
 See Thread#Thread(Runnable) for details. More...
 
 Thread (final ThreadGroup tg, final Runnable target)
 See Thread#Thread(ThreadGroup, Runnable) for details. More...
 
 Thread (final ThreadGroup tg, final Runnable target, final String name)
 See Thread#Thread(ThreadGroup, Runnable, String) for details. More...
 
final Throwable getInterruptSource (final boolean clear)
 Returns the source of the last interrupt() call. More...
 
final int getInterruptCounter (final boolean clear)
 Returns the count of java.lang.Thread#interrupt() calls. More...
 
final void clearInterruptSource ()
 Clears source and count of java.lang.Thread#interrupt() calls, if any. More...
 
final void interrupt ()
 
Throwable getInterruptSource (final boolean clear)
 Returns the source of the last interrupt() call. More...
 
int getInterruptCounter (final boolean clear)
 Returns the count of java.lang.Thread#interrupt() calls. More...
 
void clearInterruptSource ()
 Clears source and count of java.lang.Thread#interrupt() calls, if any. More...
 

Static Public Member Functions

static Thread create (final ThreadGroup tg, final Runnable target, final String name)
 Depending on whether name is null, either Thread(ThreadGroup, Runnable, String) or Thread(ThreadGroup, Runnable) is being utilized. More...
 

Detailed Description

java.lang.Thread specialization implementing InterruptSource to track java.lang.Thread#interrupt() calls.

Since
2.3.2

Definition at line 80 of file InterruptSource.java.

Constructor & Destructor Documentation

◆ Thread() [1/4]

See Thread#Thread( for details.

Definition at line 88 of file InterruptSource.java.

Here is the caller graph for this function:

◆ Thread() [2/4]

See Thread#Thread(Runnable) for details.

Parameters
targetexplicit Runnable, may be null

Definition at line 95 of file InterruptSource.java.

◆ Thread() [3/4]

com.jogamp.common.util.InterruptSource.Thread.Thread ( final ThreadGroup  tg,
final Runnable  target 
)

See Thread#Thread(ThreadGroup, Runnable) for details.

Parameters
tgexplicit ThreadGroup, may be null
targetexplicit Runnable, may be null

Definition at line 103 of file InterruptSource.java.

◆ Thread() [4/4]

com.jogamp.common.util.InterruptSource.Thread.Thread ( final ThreadGroup  tg,
final Runnable  target,
final String  name 
)

See Thread#Thread(ThreadGroup, Runnable, String) for details.

Parameters
tgexplicit ThreadGroup, may be null
targetexplicit Runnable, may be null
nameexplicit name of thread, must not be null

Definition at line 112 of file InterruptSource.java.

Member Function Documentation

◆ clearInterruptSource()

final void com.jogamp.common.util.InterruptSource.Thread.clearInterruptSource ( )

Clears source and count of java.lang.Thread#interrupt() calls, if any.

Implements com.jogamp.common.util.InterruptSource.

Definition at line 149 of file InterruptSource.java.

Here is the caller graph for this function:

◆ create()

static Thread com.jogamp.common.util.InterruptSource.Thread.create ( final ThreadGroup  tg,
final Runnable  target,
final String  name 
)
static

Depending on whether name is null, either Thread(ThreadGroup, Runnable, String) or Thread(ThreadGroup, Runnable) is being utilized.

Parameters
tgexplicit ThreadGroup, may be null
targetexplicit Runnable, may be null
nameexplicit name of thread, may be null

Definition at line 124 of file InterruptSource.java.

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

◆ getInterruptCounter()

final int com.jogamp.common.util.InterruptSource.Thread.getInterruptCounter ( final boolean  clear)

Returns the count of java.lang.Thread#interrupt() calls.

Parameters
clearif true, issues clearInterruptSource()

Implements com.jogamp.common.util.InterruptSource.

Definition at line 139 of file InterruptSource.java.

Here is the call graph for this function:

◆ getInterruptSource()

final Throwable com.jogamp.common.util.InterruptSource.Thread.getInterruptSource ( final boolean  clear)

Returns the source of the last interrupt() call.

Parameters
clearif true, issues clearInterruptSource()

Implements com.jogamp.common.util.InterruptSource.

Definition at line 129 of file InterruptSource.java.

Here is the call graph for this function:

◆ interrupt()

final void com.jogamp.common.util.InterruptSource.Thread.interrupt ( )

Definition at line 156 of file InterruptSource.java.


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