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

Side by Side Diff: fusl/src/thread/pthread_cond_signal.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 __private_cond_signal(pthread_cond_t *, int); 3 int __private_cond_signal(pthread_cond_t*, int);
4 4
5 int pthread_cond_signal(pthread_cond_t *c) 5 int pthread_cond_signal(pthread_cond_t* c) {
6 { 6 if (!c->_c_shared)
7 » if (!c->_c_shared) return __private_cond_signal(c, 1); 7 return __private_cond_signal(c, 1);
8 » if (!c->_c_waiters) return 0; 8 if (!c->_c_waiters)
9 » a_inc(&c->_c_seq); 9 return 0;
10 » __wake(&c->_c_seq, 1, 0); 10 a_inc(&c->_c_seq);
11 » return 0; 11 __wake(&c->_c_seq, 1, 0);
12 return 0;
12 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698