mailing list of musl libc
 help / color / mirror / code / Atom feed
09c1d9e0368a22478bab131ff534bae2e0782585 blob 477 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#include "pthread_impl.h"
#include <threads.h>

int __pthread_create(pthread_t *restrict, const pthread_attr_t *restrict, void *(*)(void *), void *restrict);

int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) {
	int ret = __pthread_create(thr, __ATTRP_C11_THREAD, (void * (*)(void *))func, arg);
	switch (ret) {
	case 0:      return thrd_success;
	case ENOMEM: return thrd_nomem;
	/* The call may also return ENOSYS or EAGAIN. */
	default:     return thrd_error;
	}
}
debug log:

solving 09c1d9e ...
found 09c1d9e in https://inbox.vuxu.org/musl/84b57c4f92b17384a2acdb2909d7ad8290abe31f.1409524413.git.Jens.Gustedt@inria.fr/

applying [1/1] https://inbox.vuxu.org/musl/84b57c4f92b17384a2acdb2909d7ad8290abe31f.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/thrd_create.c b/src/thread/thrd_create.c
new file mode 100644
index 0000000..09c1d9e

Checking patch src/thread/thrd_create.c...
Applied patch src/thread/thrd_create.c cleanly.

index at:
100644 09c1d9e0368a22478bab131ff534bae2e0782585	src/thread/thrd_create.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).