thread_suspendAll

fnvoid thread_suspendAll() nothrow

Suspend all threads but the calling thread for "stop the world" garbage collection runs. This function may be called multiple times, and must be followed by a matching number of calls to thread_resumeAll before processing is resumed.

Throws

ThreadError if the suspend operation fails for a running thread.