projects
/
cdsspec-compiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb619bf
)
model: get_num_threads() should be const
author
Brian Norris
<banorris@uci.edu>
Wed, 7 Nov 2012 03:13:05 +0000
(19:13 -0800)
committer
Brian Norris
<banorris@uci.edu>
Wed, 14 Nov 2012 22:34:20 +0000
(14:34 -0800)
model.cc
patch
|
blob
|
history
model.h
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 78907f1dab02648a327c86f1c0fbd3a72dd80c05..bcc10e20e3d854673c69be58337a2d39764bd68a 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-101,7
+101,7
@@
thread_id_t ModelChecker::get_next_id()
}
/** @return the number of user threads created during this execution */
-unsigned int ModelChecker::get_num_threads()
+unsigned int ModelChecker::get_num_threads()
const
{
return priv->next_thread_id;
}
diff --git
a/model.h
b/model.h
index 59a07597bb5bf0436752ad6a4fca2f22d9fa2fe8..86f9d0b581d5f96f65c5114cfd99812245a76ad9 100644
(file)
--- a/
model.h
+++ b/
model.h
@@
-89,7
+89,7
@@
public:
Thread * get_thread(ModelAction *act) const;
thread_id_t get_next_id();
- unsigned int get_num_threads();
+ unsigned int get_num_threads()
const
;
Thread * get_current_thread();
int switch_to_master(ModelAction *act);