mailing list of musl libc
 help / color / mirror / code / Atom feed
d9dabde16b0361b7a3c41eeff899bf8e44dc05a7 blob 356 bytes (raw)

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

/* Not all arch have __pthread_self as a symbol. On some this results
   in some magic. So this "call" to __pthread_self is not necessary a
   tail call. In particular, other than the appearance, thrd_current
   can not be implemented as a weak symbol. */
thrd_t thrd_current()
{
	return __pthread_self();
}
debug log:

solving d9dabde ...
found d9dabde 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_current.c b/src/thread/thrd_current.c
new file mode 100644
index 0000000..d9dabde

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

index at:
100644 d9dabde16b0361b7a3c41eeff899bf8e44dc05a7	src/thread/thrd_current.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).