mailing list of musl libc
 help / color / mirror / code / Atom feed
300d90d6f1ac2ea6ba976251ab9a1e5db0d6583d blob 432 bytes (raw)

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

int mtx_lock(mtx_t *m)
{
	__THRD_ABI_MARK;
	if (m->_m_type == PTHREAD_MUTEX_NORMAL && !a_cas(&m->_m_lock, 0, thrd_busy))
		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 aa3d031 ...
found aa3d031 in https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/

applying [1/1] https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/
diff --git a/src/thread/mtx_lock.c b/src/thread/mtx_lock.c\r
new file mode 100644\r
index 0000000..aa3d031\r

1:7: trailing whitespace.
#include "pthread_impl.h"\r
1:8: trailing whitespace.
#include <threads.h>\r
1:9: trailing whitespace.
\r
1:10: trailing whitespace.
int mtx_lock(mtx_t *m)\r
1:11: trailing whitespace.
{\r
Checking patch src/thread/mtx_lock.c...
Applied patch src/thread/mtx_lock.c cleanly.
warning: squelched 9 whitespace errors
warning: 14 lines add whitespace errors.

index at:
100644 300d90d6f1ac2ea6ba976251ab9a1e5db0d6583d	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).