class ThreadUtils
This class test if Main runPipline
abstract class MainThreadRunnable : ThreadUtils.Task |
|
abstract class ReplaceThreadRunnable : ThreadUtils.WorkerThreadRunnable |
|
abstract class SequencedThreadRunnable : ThreadUtils.WorkerThreadRunnable |
|
abstract class Task : Runnable |
|
abstract class WorkerThreadRunnable : ThreadUtils.Task |
fun addTask(runnable: ThreadUtils.WorkerThreadRunnable): Unit
Run parallel in background but serialized executed in a group. |
|
fun finalize(): Unit |
val CPU_CORE_COUNT: Int |
|
val glRender: GLThread |
|
val worker: ThreadUtils |
fun acquireGlRender(): <ERROR CLASS> |
|
fun getGlRenderIfExists(): Nothing? |
|
fun postToMainThread(runnable: ThreadUtils.MainThreadRunnable): Unit
Run Ui operation on the main thread at the next UI Frame. |
|
fun runOnMainThread(runnable: ThreadUtils.MainThreadRunnable): Unit
Run Ui operation on the main thread at the next UI Frame or instant if the execution thread already the main thread. |
|
fun saveReleaseGlRender(): Unit |
|
fun thisIsUiThread(): Boolean
Check if this is the Ui thread. |
infix fun <A> A.andRecycle(b: <ERROR CLASS>): <ERROR CLASS> infix fun <A> A.andRecycle(b: Recyclable): <ERROR CLASS> |
|
fun <T> T.loopAsLongNotNull(block: (it: T) -> T?): T |