Uses of Class
pthreading.PThread
-
-
Uses of PThread in pthreading
Methods in pthreading with parameters of type PThread Modifier and Type Method Description void
PThreadManager. addThread(PThread... thread)
Adds a new thread (from aPThread
instance) to the manager and runs it immediately.void
PThreadManager. addThread(PThread thread, int targetFPS)
Adds a new thread (from aPThread
instance) with an associated targetFPS to the manager, and runs it immediately.void
PThreadManager. pauseAndClearThread(PThread... thread)
Pause a given thread or threads (varargs) and clear so it will not draw visible on screen.void
PThreadManager. pauseThread(PThread... thread)
Pause a given thread or threads (varargs).void
PThreadManager. resumeThread(PThread... thread)
Resumes a given thread or threads (varargs).void
PThreadManager. stopThread(PThread... thread)
Stops a given thread or threads (varargs) and removes it from the thread manager (cannot be resumed).Method parameters in pthreading with type arguments of type PThread Modifier and Type Method Description void
PThreadManager. addThread(java.lang.Class<? extends PThread> threadClass, int threadCount)
Adds a number of new threads to the manager using a class type (the class should extendPThread
).void
PThreadManager. addThread(java.lang.Class<? extends PThread> threadClass, int threadCount, int targetFPS)
Adds a number of new threads to the manager using a class type (the class should extendPThread
).void
PThreadManager. addThread(java.lang.Class<? extends PThread> threadClass, int threadCount, int targetFPS, java.lang.Object... args)
Adds a number of new threads to the manager using a class type (the class should extendPThread
) and arguments.Constructor parameters in pthreading with type arguments of type PThread Constructor Description PThreadManager(processing.core.PApplet p, java.lang.Class<? extends PThread> threadClass, int threadCount, int targetFPS)
Constructs a thread manager and creates live thread instances from the given thread class (using its constructor with no additional custom args).PThreadManager(processing.core.PApplet p, java.lang.Class<? extends PThread> threadClass, int threadCount, int targetFPS, java.lang.Object... args)
Constructs a thread manager and creates running thread instances from the given thread class and given args (in contrast toPThreadManager.addThread(Class, int, int)
which does not support ags).
-