projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f2a0c8a
)
promise: use id_to_int()
author
Brian Norris
<banorris@uci.edu>
Tue, 12 Feb 2013 19:35:45 +0000
(11:35 -0800)
committer
Brian Norris
<banorris@uci.edu>
Tue, 12 Feb 2013 19:42:04 +0000
(11:42 -0800)
promise.cc
patch
|
blob
|
history
diff --git
a/promise.cc
b/promise.cc
index 69197cbac818b8f8dc01ad75d1d109df61474783..e38696ea4d119fd4d159656d3b3eed74443d8f3c 100644
(file)
--- a/
promise.cc
+++ b/
promise.cc
@@
-59,7
+59,7
@@
bool Promise::thread_is_available(thread_id_t tid) const
/** @brief Print debug info about the Promise */
void Promise::print() const
{
/** @brief Print debug info about the Promise */
void Promise::print() const
{
- model_print("Promised value %#" PRIx64 ", read from thread %d, available threads to resolve: ", value,
read->get_tid(
));
+ model_print("Promised value %#" PRIx64 ", read from thread %d, available threads to resolve: ", value,
id_to_int(read->get_tid()
));
for (unsigned int i = 0; i < available_thread.size(); i++)
if (available_thread[i])
model_print("[%d]", i);
for (unsigned int i = 0; i < available_thread.size(); i++)
if (available_thread[i])
model_print("[%d]", i);