promise: refactor has_failed()
authorBrian Norris <banorris@uci.edu>
Wed, 23 Jan 2013 20:50:57 +0000 (12:50 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 23 Jan 2013 20:50:57 +0000 (12:50 -0800)
commit00bfb38e139e7ee131c137ae27f5e82ee642a9d8
treed9cbc4c9333f966a6102e56f54507f9a2a7aab2d
parentac4c9ec2a1ddb227fbe88ee505f7126485b94cb9
promise: refactor has_failed()

has_failed() can simply call the thread_is_eliminated() function which
does much of the same computation already. We can drop the
'((int)i != promise_tid)' clause, since the 'promise_tid' thread must
already be eliminated.
promise.cc