suspend

private fnbool suspend( Thread t ) nothrow @nogc

Suspend the specified thread and load stack and register information for use by thread_scanAll. If the supplied thread is the calling thread, stack and register information will be loaded but the thread will not be suspended. If the suspend operation fails and the thread is not running then it will be removed from the global thread list, otherwise an exception will be thrown.

Parameters

tThe thread to suspend.

Throws

ThreadError if the suspend operation fails for a running thread.

Returns

Whether the thread is now suspended (true) or terminated (false).