13 #include <rosrtl/thread.h>
15 static VOID NTAPI RtlRosExitUserThread_Stage2
20 RtlRosFreeUserThreadStack(NtCurrentProcess(), NtCurrentThread());
21 NtTerminateThread(NtCurrentThread(), Status
);
24 __declspec(noreturn
) VOID NTAPI RtlRosExitUserThread
29 RtlRosSwitchStackForExit
31 NtCurrentTeb()->StaticUnicodeBuffer
,
32 sizeof(NtCurrentTeb()->StaticUnicodeBuffer
),
33 RtlRosExitUserThread_Stage2
,