PauseThread()
语法
PauseThread(Thread)概要
Pauses the execution of the specified thread, previously created with CreateThread(). The thread can be resumed with ResumeThread().
参数
Thread The thread to pause. This value is returned by CreateThread().
返回值
无.
示例
Procedure PrintStuff(*Dummy) For i = 0 To 10 PrintN(".") Delay(200) Next EndProcedure If OpenConsole() thread = CreateThread(@PrintStuff(), 0) If thread Delay(100) PauseThread(thread) For i = 0 To 10 PrintN("A") Delay(50) Next ; Resume thread and give it enough time to complete ResumeThread(thread) Delay(3000) EndIf EndIf
参阅
ResumeThread(), CreateThread()
已支持操作系统
所有