10 #include <ntdll/ntdll.h>
12 #include <rosrtl/thread.h>
14 static VOID NTAPI RtlRosExitUserThread_Stage2
19 RtlRosFreeUserThreadStack(NtCurrentProcess(), NtCurrentThread());
20 NtTerminateThread(NtCurrentThread(), Status
);
23 __declspec(noreturn
) VOID NTAPI RtlRosExitUserThread
28 RtlRosSwitchStackForExit
30 NtCurrentTeb()->StaticUnicodeBuffer
,
31 sizeof(NtCurrentTeb()->StaticUnicodeBuffer
),
32 RtlRosExitUserThread_Stage2
,