add pthread_detach function
authorroot <root@dw-6.eecs.uci.edu>
Sat, 29 Jun 2019 20:36:29 +0000 (13:36 -0700)
committerroot <root@dw-6.eecs.uci.edu>
Sat, 29 Jun 2019 20:36:29 +0000 (13:36 -0700)
pthread.cc

index 1df85e13604ea29958aa63b35d37499955ce73a9..276e37587e43de82e2ff8f84ca30aca3dc4cb7d9 100644 (file)
@@ -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));