UtilProcessSleepThread(Int32, TimeSpan) Method
Suspends the specified thread for the given amount of time.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SleepThread(
int threadId,
TimeSpan timeout
)
Public Shared Sub SleepThread (
threadId As Integer,
timeout As TimeSpan
)
Dim threadId As Integer
Dim timeout As TimeSpan
UtilProcess.SleepThread(threadId, timeout)
public:
static void SleepThread(
int threadId,
TimeSpan timeout
)
static member SleepThread :
threadId : int *
timeout : TimeSpan -> unit
No code example is currently available or this language may not be supported.
Parameters
- threadId Int32
-
The thread identifier.
- timeout TimeSpan
-
The amount of time for which the thread is suspended.
If the value of the timeout argument is Zero,
the thread relinquishes the remainder of its time slice to any thread of equal priority that is ready to run.