fix and overhaul dlsym depedency order, always record direct deps
[musl.git] / src / thread / thrd_create.c
blob76a683dbf87e71f2303497ba5a375dc10dbb1ccb
1 #include "pthread_impl.h"
2 #include <threads.h>
4 int thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
6 int ret = __pthread_create(thr, __ATTRP_C11_THREAD, (void *(*)(void *))func, arg);
7 switch (ret) {
8 case 0: return thrd_success;
9 case EAGAIN: return thrd_nomem;
10 default: return thrd_error;