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

Side by Side Diff: fusl/src/thread/thrd_join.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 <stdint.h> 1 #include <stdint.h>
2 #include <threads.h> 2 #include <threads.h>
3 3
4 int __pthread_join(thrd_t, void**); 4 int __pthread_join(thrd_t, void**);
5 5
6 int thrd_join(thrd_t t, int *res) 6 int thrd_join(thrd_t t, int* res) {
7 { 7 void* pthread_res;
8 void *pthread_res; 8 __pthread_join(t, &pthread_res);
9 __pthread_join(t, &pthread_res); 9 if (res)
10 if (res) *res = (int)(intptr_t)pthread_res; 10 *res = (int)(intptr_t)pthread_res;
11 return thrd_success; 11 return thrd_success;
12 } 12 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698