First version of user feedback fixes
authorIustin Pop <iustin@google.com>
Mon, 14 Jul 2008 13:15:58 +0000 (13:15 +0000)
committerIustin Pop <iustin@google.com>
Mon, 14 Jul 2008 13:15:58 +0000 (13:15 +0000)
commitf1048938a0e48c0c81818b928e2e32287a3f871f
tree551d2af3d067c2e4fe7ac81950af0518eae99663
parentac0930b925974d3bb1174cf3922bafc4fbe50596
First version of user feedback fixes

This patch contains a raw version for fixing feedback_fn.

The new mechanism works as follows:
  - instead of a per-Processor feedback_fn, there's one for each
    ExecOpCode, so that feedback for different opcodes go via possibly
    different functions
  - each _QueuedOpCode gets a message buffer, a method for adding
    feedback and a method for retrieving (parts of) the feedback
  - the _QueuedJob object gets a new attribute that is equal to the
    index of the currently executing opcode
  - job queries get an extra parameter called 'ticker' that will return
    the latest message on the current executing opcode
  - the cli.py job completion poll will show the new status if different
    from the old one

Of course, quick messages will be lost, as currently only the latest one
is available. Also changes between opcodes are not represented at all.

Reviewed-by: imsnah
lib/cli.py
lib/constants.py
lib/jqueue.py
lib/mcpu.py