4 #include "../fb_private_thread.h"
5 #include <xboxkrnl/xboxkrnl.h>
7 static void NTAPI
threadproc(
void *param1,
void *param2)
25 thread = malloc(
sizeof(
FBTHREAD ) );
31 thread->
param = param;
33 status = PsCreateSystemThreadEx( &thread->id,
44 if( status != STATUS_SUCCESS ) {
57 NTWaitForSingleObject( thread->id,
FALSE,
NULL );
58 NtClose( thread->id );