projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: check_recency: convert a few things to ASSERT()
[model-checker.git]
/
threads.cc
diff --git
a/threads.cc
b/threads.cc
index 1de548ccdb93ccd41a2a0248a49be2937dd87f01..762bbff34c2463a3dbaf6179e3af3e1eb977ca8b 100644
(file)
--- a/
threads.cc
+++ b/
threads.cc
@@
-151,7
+151,8
@@
Thread::Thread(thread_id_t tid) :
* @param func The function that the thread will call.
* @param a The parameter to pass to this function.
*/
* @param func The function that the thread will call.
* @param a The parameter to pass to this function.
*/
-Thread::Thread(thrd_t *t, void (*func)(void *), void *a) :
+Thread::Thread(thrd_t *t, void (*func)(void *), void *a, Thread *parent) :
+ parent(parent),
creation(NULL),
pending(NULL),
start_routine(func),
creation(NULL),
pending(NULL),
start_routine(func),
@@
-171,7
+172,6
@@
Thread::Thread(thrd_t *t, void (*func)(void *), void *a) :
id = model->get_next_id();
user_thread->priv = this;
id = model->get_next_id();
user_thread->priv = this;
- parent = thread_current();
}
/** Destructor */
}
/** Destructor */