1 #include <threads.h> 2 3 #include "threads_impl.h" 4 thrd_detach(thrd_t t)5int thrd_detach(thrd_t t) { 6 switch (__pthread_detach(t)) { 7 case 0: 8 return thrd_success; 9 default: 10 return thrd_error; 11 } 12 } 13
1 #include <threads.h> 2 3 #include "threads_impl.h" 4 thrd_detach(thrd_t t)5int thrd_detach(thrd_t t) { 6 switch (__pthread_detach(t)) { 7 case 0: 8 return thrd_success; 9 default: 10 return thrd_error; 11 } 12 } 13