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

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

int __pthread_cond_timedwait(cnd_t *restrict c, mtx_t *restrict m, const struct timespec *restrict ts);

int cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mutex, const struct timespec *restrict ts) {
	int ret = __pthread_cond_timedwait(cond, mutex, ts);
	switch (ret) {
	/* May also return EINVAL or EPERM. */
	default:        return thrd_error;
	case 0:         return thrd_success;
	case ETIMEDOUT: return thrd_timedout;
	}
}
debug log:

solving d69a4f1 ...
found d69a4f1 in https://inbox.vuxu.org/musl/64bad51d35eea337b8d998a1a2165c5adc440e1d.1409423162.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/92a8085e31df9f3e313583980256ae38746f3d3f.1409524413.git.Jens.Gustedt@inria.fr/

applying [1/2] https://inbox.vuxu.org/musl/64bad51d35eea337b8d998a1a2165c5adc440e1d.1409423162.git.Jens.Gustedt@inria.fr/
diff --git a/src/thread/cnd_timedwait.c b/src/thread/cnd_timedwait.c
new file mode 100644
index 0000000..d69a4f1

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

skipping https://inbox.vuxu.org/musl/92a8085e31df9f3e313583980256ae38746f3d3f.1409524413.git.Jens.Gustedt@inria.fr/ for d69a4f1
index at:
100644 d69a4f11f12f74b756de779fbfefa479e549dabd	src/thread/cnd_timedwait.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).