Subversion Repositories freemyipod

Rev

Rev 675 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 675 Rev 689
Line 389... Line 389...
389
            threadstruct = threadstruct._to_bunch()
389
            threadstruct = threadstruct._to_bunch()
390
            threadstruct.id = id # only for the purpose of detecting the idle thread as it is always the first one
390
            threadstruct.id = id # only for the purpose of detecting the idle thread as it is always the first one
391
            threadstruct.addr = structptr
391
            threadstruct.addr = structptr
392
            if threadstruct.name != 0:
392
            if threadstruct.name != 0:
393
                threadstruct.name = self.readstring(threadstruct.name)
393
                threadstruct.name = self.readstring(threadstruct.name)
394
            else: threadstruct.name = "[Thread %08X]" % structptr
394
            else: threadstruct.name = "[Thread 0x%08X]" % structptr
395
            threadstruct.state = thread_state(threadstruct.state)
395
            threadstruct.state = thread_state(threadstruct.state)
396
            if threadstruct.block_type == "THREAD_BLOCK_MUTEX":
396
            if threadstruct.block_type == "THREAD_BLOCK_MUTEX":
397
                blocked_by_struct = mutex
397
                blocked_by_struct = mutex
398
            elif threadstruct.block_type == "THREAD_BLOCK_WAKEUP":
398
            elif threadstruct.block_type == "THREAD_BLOCK_WAKEUP":
399
                blocked_by_struct = wakeup
399
                blocked_by_struct = wakeup