mailing list of musl libc
 help / color / mirror / code / Atom feed
993f54c57c64e2206231bf8e8a9d53affb76c171 blob 366 bytes (raw)

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

int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec *restrict at);

int __pthread_mutex_lock(pthread_mutex_t *m)
{
	if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL
	    && !a_cas(&m->_m_lock, 0, EBUSY))
		return 0;

	return __pthread_mutex_timedlock(m, 0);
}

weak_alias(__pthread_mutex_lock, pthread_mutex_lock);
debug log:

solving 993f54c ...
found 993f54c in https://inbox.vuxu.org/musl/d408051f223ecc194b28f8df1f113a30427d17f6.1409524413.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/b91c6335ff9753691922f845f726c18f8e68802a.1409423162.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/
found 2a9a3aa in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 2a9a3aa4044038bd38319bc0006fbba5557e3f28	src/thread/pthread_mutex_lock.c

applying [1/3] https://inbox.vuxu.org/musl/d408051f223ecc194b28f8df1f113a30427d17f6.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/pthread_mutex_lock.c b/src/thread/pthread_mutex_lock.c
index 2a9a3aa..993f54c 100644

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

skipping https://inbox.vuxu.org/musl/b91c6335ff9753691922f845f726c18f8e68802a.1409423162.git.Jens.Gustedt@inria.fr/ for 993f54c
skipping https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ for 993f54c
index at:
100644 993f54c57c64e2206231bf8e8a9d53affb76c171	src/thread/pthread_mutex_lock.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).