projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ece47c
)
add pthread_detach function
author
root
<root@dw-6.eecs.uci.edu>
Sat, 29 Jun 2019 20:36:29 +0000
(13:36 -0700)
committer
root
<root@dw-6.eecs.uci.edu>
Sat, 29 Jun 2019 20:36:29 +0000
(13:36 -0700)
pthread.cc
patch
|
blob
|
history
diff --git
a/pthread.cc
b/pthread.cc
index 1df85e13604ea29958aa63b35d37499955ce73a9..276e37587e43de82e2ff8f84ca30aca3dc4cb7d9 100644
(file)
--- a/
pthread.cc
+++ b/
pthread.cc
@@
-47,6
+47,12
@@
int pthread_join(pthread_t t, void **value_ptr) {
return 0;
}
+int pthread_detach(pthread_t t) {
+ //Doesn't do anything
+ //Return success
+ return 0;
+}
+
void pthread_exit(void *value_ptr) {
Thread * th = thread_current();
model->switch_to_master(new ModelAction(THREAD_FINISH, std::memory_order_seq_cst, th));