mailing list of musl libc
 help / color / mirror / code / Atom feed
952dfa73d6838577cd11c990c7719052c4c779b7 blob 371 bytes (raw)

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

int __pthread_cond_destroy(pthread_cond_t *c)
{
	if (c->_c_shared && c->_c_waiters) {
		int cnt;
		a_or(&c->_c_waiters, 0x80000000);
		a_inc(&c->_c_seq);
		__wake(&c->_c_seq, -1, 0);
		while ((cnt = c->_c_waiters) & 0x7fffffff)
			__wait(&c->_c_waiters, 0, cnt, 0);
	}
	return 0;
}

weak_alias(__pthread_cond_destroy, pthread_cond_destroy);
debug log:

solving b2abeb8 ...
found b2abeb8 in https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/
found 8c55516 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 8c5551600e8c35d0a9f5fe194ee060d8303c22f6	src/thread/pthread_cond_destroy.c

applying [1/1] https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/
diff --git a/src/thread/pthread_cond_destroy.c b/src/thread/pthread_cond_destroy.c\r
index 8c55516..b2abeb8 100644\r

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

index at:
100644 952dfa73d6838577cd11c990c7719052c4c779b7	src/thread/pthread_cond_destroy.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).