projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f661a
)
userprog: use typedef'd thrd_start_t
author
Brian Norris
<banorris@uci.edu>
Tue, 24 Apr 2012 20:03:23 +0000
(13:03 -0700)
committer
Brian Norris
<banorris@uci.edu>
Tue, 24 Apr 2012 20:08:59 +0000
(13:08 -0700)
userprog.c
patch
|
blob
|
history
diff --git
a/userprog.c
b/userprog.c
index c90ad1e8151c7fcb7945bb9e49cde67303e05a23..4b106d88c11e8f0829008b5d7c47dd626e093c05 100644
(file)
--- a/
userprog.c
+++ b/
userprog.c
@@
-26,8
+26,8
@@
void user_main()
atomic_int obj;
printf("Creating 2 threads\n");
- thrd_create(&t1, (
void (*)()
)&a, &obj);
- thrd_create(&t2, (
void (*)()
)&a, &obj);
+ thrd_create(&t1, (
thrd_start_t
)&a, &obj);
+ thrd_create(&t2, (
thrd_start_t
)&a, &obj);
thrd_join(t1);
thrd_join(t2);