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

Side by Side Diff: fusl/src/thread/mtx_init.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 #include <threads.h> 2 #include <threads.h>
3 3
4 int mtx_init(mtx_t *m, int type) 4 int mtx_init(mtx_t* m, int type) {
5 { 5 *m = (mtx_t){
6 » *m = (mtx_t){ 6 ._m_type = ((type & mtx_recursive) ? PTHREAD_MUTEX_RECURSIVE
7 » » ._m_type = ((type&mtx_recursive) ? PTHREAD_MUTEX_RECURSIVE : PTH READ_MUTEX_NORMAL), 7 : PTHREAD_MUTEX_NORMAL),
8 » }; 8 };
9 » return thrd_success; 9 return thrd_success;
10 } 10 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698