Changeset 330
- Timestamp:
- Sep 9, 2007, 12:41:35 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/DirectoryInfo.ab
r327 r330 165 165 166 166 Dim files As List<FileSystemInfo> 167 Dim i As Long167 Dim i = 0 As Long 168 168 Do 169 169 If i > 1 Then -
trunk/Include/Classes/System/Threading/Thread.ab
r303 r330 26 26 m_fp As PTHREAD_START_ROUTINE 27 27 m_args As VoidPtr 28 name As String 28 29 29 30 Public … … 34 35 35 36 m_fp=0 37 38 name = "sub thread" 36 39 End Sub 37 40 Sub Thread(fp As PTHREAD_START_ROUTINE, args As VoidPtr) … … 42 45 m_fp=fp 43 46 m_args=args 47 48 name = "sub thread" 44 49 End Sub 45 50 … … 50 55 m_fp=obj.m_fp 51 56 m_args=obj.m_args 57 58 name = "sub thread" 52 59 End Sub 53 60 … … 55 62 m_hThread=hThread 56 63 m_dwThreadId=dwThreadId 64 65 name = "sub thread" 57 66 End Sub 58 67 … … 83 92 Return m_dwThreadId 84 93 End Function 94 95 Function Name() As String 96 Return name 97 End Function 98 Sub Name( name As String ) 99 This.name = name 100 End Sub 85 101 86 102 -
trunk/Include/system/gc.sbp
r299 r330 126 126 ' 自身のThreadオブジェクトを生成 127 127 Dim thread As Thread(hTargetThread,GetCurrentThreadId(),0) 128 thread.Name = "main" 128 129 129 130 _System_pobj_AllThreads->BeginThread(ObjPtr( thread ),_System_gc_StackRoot_StartPtr As *LONG_PTR) … … 179 180 pdwFlags[n]=flags 180 181 LeaveCriticalSection(CriticalSection) 182 183 /* 184 ' デバッグ用 185 If n = 1996 Then 186 debug 187 End If 188 */ 181 189 182 190 n++ … … 283 291 End If 284 292 293 /* 294 _System_DebugOnly_OutputDebugString( " (scanning object)" ) 295 _System_DebugOnly_OutputDebugString( classTypeInfo.Name ) 296 _System_DebugOnly_OutputDebugString( Ex"\r\n" ) 297 */ 298 285 299 Dim i As Long 286 300 For i = 0 To ELM(classTypeInfo.numOfReference) … … 330 344 Dim i As Long 331 345 For i=0 To ELM(_System_pobj_AllThreads->ThreadNum) 332 If _System_pobj_AllThreads->ppobj_Thread[i] Then 346 Dim thread = _System_pobj_AllThreads->ppobj_Thread[i] 347 If thread Then 333 348 FillMemory(VarPtr(Context),SizeOf(CONTEXT),0) 334 349 Context.ContextFlags=CONTEXT_CONTROL 335 If _System_pobj_AllThreads->ppobj_Thread[i]->__GetContext(Context)=0 Then350 If thread->__GetContext(Context)=0 Then 336 351 _System_DebugOnly_OutputDebugString(Ex"レジスタ情報の取得に失敗しました。\r\n") 337 352 End If … … 350 365 Exit Sub 351 366 End If 367 368 /* 369 _System_DebugOnly_OutputDebugString( "(scanning thread local)" ) 370 _System_DebugOnly_OutputDebugString( thread.Name ) 371 _System_DebugOnly_OutputDebugString( Ex"\r\n" ) 372 */ 352 373 353 374 Scan( NowSp, maxNum, pbMark )
Note:
See TracChangeset
for help on using the changeset viewer.