Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: fusl/src/thread/pthread_getschedparam.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "pthread_impl.h" 1 #include "pthread_impl.h"
2 2
3 int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param *restrict param) 3 int pthread_getschedparam(pthread_t t,
4 { 4 int* restrict policy,
5 » int r; 5 struct sched_param* restrict param) {
6 » __lock(t->killlock); 6 int r;
7 » if (t->dead) { 7 __lock(t->killlock);
8 » » r = ESRCH; 8 if (t->dead) {
9 » } else { 9 r = ESRCH;
10 » » r = -__syscall(SYS_sched_getparam, t->tid, param); 10 } else {
11 » » if (!r) { 11 r = -__syscall(SYS_sched_getparam, t->tid, param);
12 » » » *policy = __syscall(SYS_sched_getscheduler, t->tid); 12 if (!r) {
13 » » } 13 *policy = __syscall(SYS_sched_getscheduler, t->tid);
14 » } 14 }
15 » __unlock(t->killlock); 15 }
16 » return r; 16 __unlock(t->killlock);
17 return r;
17 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698