projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Defining the interfaces to add various regions to snapshot
[c11tester.git]
/
libthreads.cc
diff --git
a/libthreads.cc
b/libthreads.cc
index 7dd043c317c715e0604b3cdecf61d210c6bf9742..b5760ae6eab89f381a67b12a4e05f0402ef7ad76 100644
(file)
--- a/
libthreads.cc
+++ b/
libthreads.cc
@@
-13,7
+13,9
@@
int thrd_create(thrd_t *t, void (*start_routine)(), void *arg)
int ret;
DBG();
ret = model->add_thread(new Thread(t, start_routine, arg));
int ret;
DBG();
ret = model->add_thread(new Thread(t, start_routine, arg));
- DEBUG("create thread %d\n", thrd_to_id(*t));
+ DEBUG("create thread %d\n", id_to_int(thrd_to_id(*t)));
+ /* seq_cst is just a 'don't care' parameter */
+ model->switch_to_master(new ModelAction(THREAD_CREATE, memory_order_seq_cst, NULL, VALUE_NONE));
return ret;
}
return ret;
}