Skip to content

Instantly share code, notes, and snippets.

Created April 16, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5398227 to your computer and use it in GitHub Desktop.
Save anonymous/5398227 to your computer and use it in GitHub Desktop.
stdin
Name: LBIO
Attr: 0x00000054,local,pri,bin-sema,inherit-pri,no-pri-ceiling
Lock: unlocked
Nesting: 0
Blocked: 0
Holder: unlocked
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-16-e625cbe47821> in <module>()
----> 1 sem.show(id)
/home/dhananjay/Downloads/rtems-20100326/classic.py in show(self, from_tty)
188 print 'unlocked'
189 wait_queue = threads.queue(core_mutex['Wait_queue'])
--> 190 tasks = wait_queue.tasks()
191 print ' Queue: len = %d, state = %s' % (len(tasks),
192 wait_queue.state())
/home/dhananjay/Downloads/rtems-20100326/threads.py in tasks(self)
190 for ph in range(0, self.priority_headers):
191 t.extend(task_chain(chains.control( \
--> 192 self.que['Queues']['Priority'])))
193 return t
194
/home/dhananjay/Downloads/rtems-20100326/threads.py in task_chain(chain)
13 def task_chain(chain):
14 tasks = []
---> 15 node = chain.first()
16 while not node.null():
17 print node.addr
/home/dhananjay/Downloads/rtems-20100326/chains.py in first(self)
38
39 def first(self):
---> 40 return node(self.ctrl['first'].dereference())
41
42 def last(self):
error: There is no member named first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment