threads: assert completion is only called once
authorBrian Norris <banorris@uci.edu>
Tue, 18 Dec 2012 22:08:19 +0000 (14:08 -0800)
committerBrian Norris <banorris@uci.edu>
Tue, 18 Dec 2012 22:58:32 +0000 (14:58 -0800)
commit09b2cb3cabe0d96f62383a8fdd040e7605a1ffc6
treed1d4e27f156d20be77c4a9c5e0d3007fd3ce1636
parenta330eb33b1b62dfa71f3f0cb055367a30090c180
threads: assert completion is only called once

We don't need to support the case that Thread::complete() is called
multiple times. We should instead ensure (ASSERT()) that it is only
called when the Thread is not already completed (and cleaned up).
threads.cc