projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
action: remove clockvector flag from print() method
[model-checker.git]
/
threads.cc
diff --git
a/threads.cc
b/threads.cc
index 7fa4507ee94397e7e092730567901de94cf07a46..09efcae619c06b78ed5c2668473c2b8143b9ea71 100644
(file)
--- a/
threads.cc
+++ b/
threads.cc
@@
-12,13
+12,13
@@
/** Allocate a stack for a new thread. */
static void * stack_allocate(size_t size)
{
/** Allocate a stack for a new thread. */
static void * stack_allocate(size_t size)
{
- return malloc(size);
+ return
snapshot_
malloc(size);
}
/** Free a stack for a terminated thread. */
static void stack_free(void *stack)
{
}
/** Free a stack for a terminated thread. */
static void stack_free(void *stack)
{
- free(stack);
+
snapshot_
free(stack);
}
/** Return the currently executing thread. */
}
/** Return the currently executing thread. */
@@
-119,6
+119,8
@@
void Thread::complete()
* @param a The parameter to pass to this function.
*/
Thread::Thread(thrd_t *t, void (*func)(void *), void *a) :
* @param a The parameter to pass to this function.
*/
Thread::Thread(thrd_t *t, void (*func)(void *), void *a) :
+ creation(NULL),
+ pending(NULL),
start_routine(func),
arg(a),
user_thread(t),
start_routine(func),
arg(a),
user_thread(t),