mailing list of musl libc
 help / color / mirror / code / Atom feed
4d5d75e295b7dc87cd1e7747ba1b8bfc88a4f462 blob 396 bytes (raw)

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

int mtx_lock(mtx_t *m)
{
	if (m->_m_type == PTHREAD_MUTEX_NORMAL && !a_cas(&m->_m_lock, 0, EBUSY))
		return thrd_success;
	/* Calling mtx_timedlock with a null pointer is an
	   extension. Such a call is convenient, here, since it avoids
	   to repeat the case analysis that is already done for
	   mtx_timedlock. */
	return mtx_timedlock(m, 0);
}
debug log:

solving 4d5d75e ...
found 4d5d75e in https://inbox.vuxu.org/musl/0f3acdbceb88a357600611d64f7b5ed13ab3eced.1409524413.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/1fd80c87fbb0d610730e9d0bf986a304427ba8ff.1409423162.git.Jens.Gustedt@inria.fr/

applying [1/2] https://inbox.vuxu.org/musl/0f3acdbceb88a357600611d64f7b5ed13ab3eced.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/mtx_lock.c b/src/thread/mtx_lock.c
new file mode 100644
index 0000000..4d5d75e

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

skipping https://inbox.vuxu.org/musl/1fd80c87fbb0d610730e9d0bf986a304427ba8ff.1409423162.git.Jens.Gustedt@inria.fr/ for 4d5d75e
index at:
100644 4d5d75e295b7dc87cd1e7747ba1b8bfc88a4f462	src/thread/mtx_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).