original_docstring: return a description of what the task is waiting for, if it is waiting
docstring: return a description of what the task is waiting for, if it is waiting
docstring_tokens: return a description of what the task is waiting for if it is waiting
code: def waiting_for(self):
  		"""return a description of what the task is waiting for, if it is waiting"""
  		if self._state_is('TSTATE_WAIT_SEM'):
  			waitsem = self._tcb['waitsem'].dereference()
  			waitsem_holder = waitsem['holder']
  			holder = NX_task.for_tcb(waitsem_holder['htcb'])
  			if holder is not None:
  				return '{}({})'.format(waitsem.address, holder.name)
  			else:
  				return '{}(<bad holder>)'.format(waitsem.address)
  		if self._state_is('TSTATE_WAIT_SIG'):
  			return 'signal'
  		return None
code_tokens: def waiting_for ( self ) : if self . _state_is ( 'TSTATE_WAIT_SEM' ) : waitsem = self . _tcb [ 'waitsem' ] . dereference ( ) waitsem_holder = waitsem [ 'holder' ] holder = NX_task . for_tcb ( waitsem_holder [ 'htcb' ] ) if holder is not None : return '{}({})' . format ( waitsem . address , holder . name ) else : return '{}(<bad holder>)' . format ( waitsem . address ) if self . _state_is ( 'TSTATE_WAIT_SIG' ) : return 'signal' return None
short_docstring: return a description of what the task is waiting for, if it is waiting
short_docstring_tokens: return a description of what the task is waiting for if it is waiting
comment: """return a description of what the task is waiting for, if it is waiting"""