ResumeThread()

Syntax

ResumeThread(ThreadID)
Description
Resumes execution of the specified thread, previously paused with PauseThread().

Parameters:
ThreadID - The ID number of the thread you want to resume. This value is returned by CreateThread().


Return value:
This command does not return a value.


Example:
Procedure PrintStuff(dummy.l)
    For i.w=0 To 10
        Print(".")
        Delay(200)
    Next
EndProcedure

If OpenConsole()
    DefType.l thid
    thid.l = CreateThread(@PrintStuff(), @thid)
    If thid
        Delay(100)
        PauseThread(thid)
        For i.w=0 To 10
            Print("A")
            Delay(50)
        Next
        
        ; Resume thread and give it enough time to complete
        ResumeThread(thid)
        Delay(3000)
    EndIf
    
    CloseConsole()
EndIf
End

Supported OS

Windows, Linux, MacOS X

<- PauseThread() - Thread Index - ThreadPriority() ->