浏览代码

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