Libertas OS API Documentation
    Preparing search index...

    Function Libertas_ExitThread

    • Terminate a thread.

      Parameters

      • Optionalthread: number

        A thread handle. Undefined will terminate the current thread.

      Returns void

      Subject to security check, a task can only terminate threads created by itself, otherwise an error will be raised.