X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=promise.cc;h=2bd6637352195a41029b96f220d88b1bff809403;hp=e3b8d65e48d7c542bcf7e27da0473bb012a39057;hb=5af7bf9e51795daa1b4dede1e27e4862170535f4;hpb=3eb987279c382e0000de844728aceef2f360acf6 diff --git a/promise.cc b/promise.cc index e3b8d65e..2bd66373 100644 --- a/promise.cc +++ b/promise.cc @@ -74,11 +74,5 @@ void Promise::print() const */ bool Promise::has_failed() const { - for (unsigned int i = 0; i < available_thread.size(); i++) { - thread_id_t tid = int_to_id(i); - if (thread_is_available(tid) && model->is_enabled(tid)) - return false; - } - ASSERT(num_available_threads == 0); - return true; + return num_available_threads == 0; }