Thread

    Category: Core

    A unit of execution in a process.

    • PRIORITY_LOW = 0
    • PRIORITY_NORMAL = 1

    A unit of execution in a process. Can run methods on s simultaneously. The use of synchronization via Mutex, is advised if working with shared objects.

    Returns the current s id, uniquely identifying it among all threads.


    • is_active ( ) const

    • Error start ( instance, String method, userdata=null, int priority=1 )

    Starts a new that runs “method” on object “instance” with “userdata” passed as an argument. The “priority” of the Thread can be changed by passing a PRIORITY_* enum.

    Returns OK on success, or ERR_CANT_CREATE on failure.