Changeset 249 for Include/Classes/System/Threading/Thread.ab
- Timestamp:
- May 15, 2007, 2:44:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Threading/Thread.ab
r237 r249 44 44 End Sub 45 45 46 Sub Thread( ByRefobj As Thread)46 Sub Thread(obj As Thread) 47 47 m_hThread=obj.m_hThread 48 48 m_dwThreadId=obj.m_dwThreadId … … 151 151 152 152 Static Function CurrentThread() As Thread 153 Dim obj_Thread As Thread() 154 _System_pobj_AllThreads->CurrentThread(obj_Thread) 155 Return obj_Thread 153 Return _System_pobj_AllThreads->CurrentThread() 156 154 End Function 157 155 End Class … … 311 309 312 310 'カレントスレッドを取得 313 Function CurrentThread( ByRef obj_Thread As Thread) As Boolean311 Function CurrentThread() As Thread 314 312 Dim dwNowThreadId As DWord 315 313 dwNowThreadId=GetCurrentThreadId() … … 318 316 For i=0 To ELM(ThreadNum) 319 317 If ppobj_Thread[i]->ThreadId=dwNowThreadId Then 320 obj_Thread.Thread(ByVal ppobj_Thread[i]) 321 Return True 322 End If 323 Next 324 325 Return False 318 Return ByVal ppobj_Thread[i] 319 End If 320 Next 321 322 ' TODO: エラー処理 323 OutputDebugString( "カレントスレッドの取得に失敗" ) 324 debug 326 325 End Function 327 326
Note:
See TracChangeset
for help on using the changeset viewer.