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:
90ef024
)
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, 7 Nov 2012 03:14:50 +0000
(19:14 -0800)
model.cc
patch
|
blob
|
history
model.h
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index b29df05cafe86fadefa27b85c535e30eb94fd43e..ff1fdf932ee302fb6cc36c9199cd54c15f3bb50d 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 f843f75cfdfb29ba356932ca65902ec739cbfbb4..3ef6ee3c6c90e4ae96eb6a7ac646de02648cfc85 100644
(file)
--- a/
model.h
+++ b/
model.h
@@
-98,7
+98,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);