ソースを参照

Fixed BlitzMax thread regstration on Win32.
BlitzMax created threads are already registered.

woollybah 5 年 前
コミット
0ce108f202
1 ファイル変更0 行追加5 行削除
  1. 0 5
      blitz.mod/blitz_thread.c

+ 0 - 5
blitz.mod/blitz_thread.c

@@ -90,9 +90,6 @@ BBObject *bbThreadGetData( int index ){
 static DWORD curThreadTls;
 
 static DWORD WINAPI threadProc( void *p ){
-
-	GC_call_with_stack_base(bbRegisterGCThread, NULL);
-
 	BBThread *thread=p;
 	
 	TlsSetValue( curThreadTls,thread );
@@ -100,8 +97,6 @@ static DWORD WINAPI threadProc( void *p ){
 	BBObject * result = thread->proc( thread->data[0] );
 	thread->result = result;
 
-	GC_unregister_my_thread();
-
 	BB_LOCK
 	removeThread( thread );
 	BB_UNLOCK