Changeset 597
- Timestamp:
- Aug 19, 2008, 1:54:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Threading/Thread.ab
r577 r597 46 46 Delegate Sub ThreadStart() 47 47 48 49 48 /* 50 49 関数ポインタ 51 50 */ 52 51 TypeDef PTHREAD_START_ROUTINE = *Function(args As VoidPtr) As DWord 53 54 52 55 53 /* … … 101 99 throwingParamObject = Nothing 102 100 End Sub 103 101 Sub Thread(threadStart As ThreadStart) 102 m_hThread=0 103 m_dwThreadId=0 104 m_Priority=ThreadPriority.Normal 105 106 m_fp=AddressOf(threadStartEntry) 107 m_args=ActiveBasic.AllocObjectHandle(threadStart) As VoidPtr 108 109 name = "sub thread" 110 state = ThreadState.Unstarted 111 112 isThrowing = False 113 throwingParamObject = Nothing 114 End Sub 104 115 Sub Thread(obj As Thread) 105 116 m_hThread=obj.m_hThread … … 251 262 End Function 252 263 264 Static Function threadStartEntry(pThreadStart As VoidPtr) As DWord 265 Dim threadStart = ActiveBasic.ReleaseObjectHandle(pThreadStart As LONG_PTR) As ThreadStart 266 threadStart() 267 End Function 268 253 269 /*------------------------ システム用 --------------------------*/ 254 270 Public … … 316 332 For i=0 To ELM(ThreadNum) 317 333 With collection[i] 318 If ActiveBasic.IsNothing( .thread ) Then334 If Not ActiveBasic.IsNothing( .thread ) Then 319 335 .thread = Nothing 320 336 .stackBase = 0
Note:
See TracChangeset
for help on using the changeset viewer.