projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rmw example works
[model-checker.git]
/
threads.cc
diff --git
a/threads.cc
b/threads.cc
index 6a9391f0302467097b415bf4b129eb1b90fffaa5..792014e62b4d3c88c1ecc052a4de120c25cace52 100644
(file)
--- a/
threads.cc
+++ b/
threads.cc
@@
-31,8
+31,11
@@
Thread * thread_current(void)
void thread_startup() {
Thread * curr_thread = thread_current();
void thread_startup() {
Thread * curr_thread = thread_current();
+ /* TODO -- we should make this event always immediately follow the
+ CREATE event, so we don't get redundant traces... */
+
/* Add dummy "start" action, just to create a first clock vector */
/* Add dummy "start" action, just to create a first clock vector */
- model->switch_to_master(new ModelAction(THREAD_START, memory_order_seq_cst, curr_thread));
+ model->switch_to_master(new ModelAction(THREAD_START,
std::
memory_order_seq_cst, curr_thread));
/* Call the actual thread function */
curr_thread->start_routine(curr_thread->arg);
/* Call the actual thread function */
curr_thread->start_routine(curr_thread->arg);