共用方式為


Suspending a Thread

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

You can suspend a thread at any time by using the SuspendThread function.

You can also perform the following related tasks on a thread.

To Call

Resume running a thread

ResumeThread

Suspend a thread for a specified number of milliseconds

Sleep

Profile the performance of a thread and return how much time the thread has run

GetThreadTimes

When suspending a thread more than once, you must match multiple calls to SuspendThread with the same number of calls to ResumeThread.

See Also

Concepts

Threads