Changeset 79 for Include/system
- Timestamp:
- Jan 30, 2007, 2:06:20 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/system/gc.sbp
r18 r79 68 68 If ppPtr=0 Then Exit Sub 69 69 70 #ifdef _DLL 71 _destructor() 72 #else 70 73 '解放スレッドを生成 71 74 Dim hThread As HANDLE … … 73 76 hThread=_beginthreadex(NULL,0,AddressOf(DestructorThread),VarPtr(This),0,ThreadId) 74 77 CloseHandle(hThread) 75 Sleep(INFINITE) 78 Sleep( INFINITE ) 79 #endif 80 76 81 End Sub 77 82 78 83 Private 79 Function Cdecl DestructorThread() As Long 80 '------------------------------------- 81 ' すべてのスレッドを一時停止 82 '------------------------------------- 83 _System_pobj_AllThreads->SuspendAllThread() 84 85 84 Sub _destructor() 86 85 Dim i As Long 87 86 For i=0 To ELM(n) … … 103 102 'クリティカルセッションを破棄 104 103 DeleteCriticalSection(CriticalSection) 105 104 End Sub 105 Function Cdecl DestructorThread() As Long 106 '------------------------------------- 107 ' すべてのスレッドを一時停止 108 '------------------------------------- 109 _System_pobj_AllThreads->SuspendAllThread() 110 111 _destructor() 106 112 107 113 'プロセスを終了
Note:
See TracChangeset
for help on using the changeset viewer.