From 75258105eece346fe9523767d12349775a3a073d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 29 Jun 2019 13:36:29 -0700 Subject: [PATCH] add pthread_detach function --- pthread.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pthread.cc b/pthread.cc index 1df85e13..276e3758 100644 --- 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)); -- 2.34.1