如何暂停/恢复和停止一个我自己创建的线程?绝对给分。急 (100分)

  • 主题发起人 holyknight
  • 开始时间
H

holyknight

Unregistered / Unconfirmed
GUEST, unregistred user!
我是一个刚学Delphi的菜鸟^_^
我用
T1 := createThread(nil,0,@fmlist,nil,0,threadID);
创建了一个线程,我该如何对这个线程操作呢?
暂停/恢复和停止

 
用TThread对象。
 
感谢你的回复。
不过我希望得到控制createThread所创建线程的方法。
 
CreateRemoteThread
CreateThread
ExitThread
GetCurrentThread
GetCurrentThreadId
GetExitCodeThread
GetThreadPriority
GetThreadPriorityBoost
GetThreadTimes
ResumeThread
SetThreadAffinityMask
SetThreadIdealProcessor
SetThreadPriority
SetThreadPriorityBoost
SuspendThread
SwitchToThread
TerminateThread
够全了吧?
 
TThread.create(suspend=true);
TThread.resume;
TThread.suspend;
TThread.terminate;
 
OK,谢了,各位。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部