projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
print stats only at end of execution
[model-checker.git]
/
threads.cc
diff --git
a/threads.cc
b/threads.cc
index 7f515159f78052727180b1be6d82ba1df7e9ebac..dd2a59832027557b543d8fd606f842527b270f97 100644
(file)
--- a/
threads.cc
+++ b/
threads.cc
@@
-4,9
+4,9
@@
#include <string.h>
#include <string.h>
-#include
"libthreads.h"
+#include
<threads.h>
#include "common.h"
#include "common.h"
-#include "threads.h"
+#include "threads
-model
.h"
/* global "model" object */
#include "model.h"
/* global "model" object */
#include "model.h"
@@
-161,7
+161,7
@@
Thread::Thread(thrd_t *t, void (*func)(void *), void *a) :
/* Initialize state */
ret = create_context();
if (ret)
/* Initialize state */
ret = create_context();
if (ret)
-
printf
("Error in create_context\n");
+
model_print
("Error in create_context\n");
id = model->get_next_id();
*user_thread = id;
id = model->get_next_id();
*user_thread = id;