MCPcopy Index your code
hub / github.com/processing/processing / thread

Method thread

core/src/processing/core/PApplet.java:3901–3909  ·  view source on GitHub ↗

Launch a new thread and call the specified function from that new thread. This is a very simple way to do a thread without needing to get into classes, runnables, etc. Note that the function being called must be public. Inside the PDE, 'public' is automatically added, but when used without the

(final String name)

Source from the content-addressed store, hash-verified

3899 * @see PApplet#noLoop()
3900 */
3901 public void thread(final String name) {
3902 Thread later = new Thread() {
3903 @Override
3904 public void run() {
3905 method(name);
3906 }
3907 };
3908 later.start();
3909 }
3910
3911
3912

Callers 4

vmClassPrepareEventMethod · 0.80
vmBreakPointEventMethod · 0.80
vmStepEventMethod · 0.80
exceptionEventMethod · 0.80

Calls 1

startMethod · 0.45

Tested by

no test coverage detected