mailing list of musl libc
 help / color / mirror / code / Atom feed
031d5013b42a0e54dcc13ed5a03ff83ae2e98308 blob 362 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
#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 == 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 9ea4a97 ...
found 9ea4a97 in https://inbox.vuxu.org/musl/1406886931.4830.92.camel@eris.loria.fr/
found 42b5af6 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 42b5af640c3f7eaf8ff08c85c3700ecaee69f049	src/thread/pthread_mutex_lock.c

applying [1/1] https://inbox.vuxu.org/musl/1406886931.4830.92.camel@eris.loria.fr/
diff --git a/src/thread/pthread_mutex_lock.c b/src/thread/pthread_mutex_lock.c\r
index 42b5af6..9ea4a97 100644\r

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

index at:
100644 031d5013b42a0e54dcc13ed5a03ff83ae2e98308	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).