Remove reliance on afterExecute from WorkQueue
Some JVM implementations aren't passing our decorated Task object to
the afterExecute() method. Instead they passing their own internal
wrapper around the Runnable to us. This is pretty useless, because
we can't obtain the task id in order to remove it from the queue.
Instead rely on the finally block in the tasks' own run() method.
We know it will run after the code is executed, allowing us to do
the cleanup we expected to perform.
Bug: issue 483
Change-Id: I3a4584949b591601cf923f3a90715f5d5fb69bbb
Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed