Kernel32SwitchToThread Method
Causes the calling thread to yield execution to another thread that is ready to run on the current processor.
The operating system selects the next thread to be executed.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true)]
public static bool SwitchToThread()
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function SwitchToThread As Boolean
Dim returnValue As Boolean
returnValue = Kernel32.SwitchToThread()
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static bool SwitchToThread()
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member SwitchToThread : unit -> bool
No code example is currently available or this language may not be supported.
Return Value
Boolean
If calling the
SwitchToThread function causes the operating system to switch execution to another thread,
the return value is
.
If there are no other threads ready to execute, the operating system does not switch execution to another thread,
and the return value is
.