promise: refactor eliminate_thread()/check_promise()
authorBrian Norris <banorris@uci.edu>
Wed, 23 Jan 2013 19:49:01 +0000 (11:49 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 23 Jan 2013 19:49:01 +0000 (11:49 -0800)
commit014ccdb9492a8e6f36dadb3a7e0a45e5f3d39bee
tree5273f1541612797c1e7220fa028b170239b2a811
parent8cebf02d9a4c9f0fe80af04f6276f4978f3b93f5
promise: refactor eliminate_thread()/check_promise()

eliminate_thread() and check_promise() have near-duplicate code, for
checking if the promise has failed. This change makes them consistent
(check_promise() now knows to eliminate its own thread immediately) and
allows one function to simply call the other.
promise.cc