| Line 383... |
Line 383... |
| 383 |
threaddata = self.read(structptr, ctypes.sizeof(scheduler_thread))
|
383 |
threaddata = self.read(structptr, ctypes.sizeof(scheduler_thread))
|
| 384 |
threadstruct._from_string(threaddata)
|
384 |
threadstruct._from_string(threaddata)
|
| 385 |
threadstruct = threadstruct._to_bunch()
|
385 |
threadstruct = threadstruct._to_bunch()
|
| 386 |
threadstruct.id = id # only for the purpose of detecting the idle thread as it is always the first one
|
386 |
threadstruct.id = id # only for the purpose of detecting the idle thread as it is always the first one
|
| 387 |
threadstruct.addr = structptr
|
387 |
threadstruct.addr = structptr
|
| - |
|
388 |
if threadstruct.name != 0:
|
| 388 |
threadstruct.name = self.readstring(threadstruct.name)
|
389 |
threadstruct.name = self.readstring(threadstruct.name)
|
| - |
|
390 |
else: threadstruct.name = "[Thread %08X]" % structptr
|
| 389 |
threadstruct.state = thread_state(threadstruct.state)
|
391 |
threadstruct.state = thread_state(threadstruct.state)
|
| 390 |
threads.append(threadstruct)
|
392 |
threads.append(threadstruct)
|
| 391 |
id += 1
|
393 |
id += 1
|
| 392 |
structptr = threadstruct.thread_next
|
394 |
structptr = threadstruct.thread_next
|
| 393 |
self.lockscheduler(schedulerstate)
|
395 |
self.lockscheduler(schedulerstate)
|