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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#include "pthread_impl.h"
#include "lock.h"

int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param *restrict param)
{
	int r;
	LOCK(t->killlock);
	if (!t->tid) {
		r = ESRCH;
	} else {
		r = -__syscall(SYS_sched_getparam, t->tid, param);
		if (!r) {
                       r = -__syscall(SYS_sched_getscheduler, t->tid);
                       if (r <= 0) {
                               *policy = -r;
                               r = 0;
                       }
		}
	}
	UNLOCK(t->killlock);
	return r;
}
debug log:

solving 4922cfa8 ...
found 4922cfa8 in https://inbox.vuxu.org/musl/4EB7132F5A45D144AC896FC29A83F192011628FB@DGGEML521-MBS.china.huawei.com/
found 1cba073d in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 1cba073d0c7d549023e2b5cc7faeb1ec8faa401e	src/thread/pthread_getschedparam.c

applying [1/1] https://inbox.vuxu.org/musl/4EB7132F5A45D144AC896FC29A83F192011628FB@DGGEML521-MBS.china.huawei.com/
diff --git a/src/thread/pthread_getschedparam.c b/src/thread/pthread_getschedparam.c
index 1cba073d..4922cfa8 100644

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

index at:
100644 bc4e58ad1e42d4bdb4c782c2a9475a4279972f53	src/thread/pthread_getschedparam.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).