class ThreadUtils
This class test if Main runPipline
static abstract class MainThreadRunnable : ly.img.android.pesdk.utils.ThreadUtils.Task |
|
static abstract class ReplaceGlThreadRunnable : ly.img.android.pesdk.utils.ThreadUtils.GlThreadRunnable |
|
static abstract class ReplaceThreadRunnable : ly.img.android.pesdk.utils.ThreadUtils.WorkerThreadRunnable |
|
static abstract class SequencedGlThreadRunnable : ly.img.android.pesdk.utils.ThreadUtils.GlThreadRunnable |
|
static abstract class SequencedThreadRunnable : ly.img.android.pesdk.utils.ThreadUtils.WorkerThreadRunnable |
fun addTask(runnable: ly.img.android.pesdk.utils.ThreadUtils.WorkerThreadRunnable): void
Run parallel in background but serialized executed in a group. |
|
synchronized fun createGlWorker(): void |
|
fun finalize(): void |
|
static fun getWorker(): ThreadUtils |
|
synchronized fun initGlWorker(egl: EGL10, renderContext: EGLContext, display: EGLDisplay, eglConfig: EGLConfig, version: int): void |
|
static fun isRunning(): boolean |
|
static fun postToMainThread(runnable: ThreadUtils.MainThreadRunnable): void
Run Ui operation on the main thread at the next UI Frame. |
|
synchronized fun releaseGlWorker(): void |
|
static fun runOnMainThread(runnable: ThreadUtils.MainThreadRunnable): void
Run Ui operation on the main thread at the next UI Frame or instant if the execution thread already the main thread. |
|
static fun thisIsUiThread(): boolean
Check if this is the Ui thread. |
CPU_CORE_COUNT |