Threads

class Threads

This class is a thread pool used to run the key threads of the stg engine, like GameLoop and Renderer, and it contains a simple ThreadFactory for naming the created tasks.

Author

KKoishi_

Parameters

corePoolSize

the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun schedule(r: Runnable, period: Long, delay: Long = 0)

Submits a periodic action to the thread pool that becomes enabled first after the given initial delay, and subsequently with the given period.