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

Unified Diff: fusl/src/thread/lock_ptc.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 side-by-side diff with in-line comments
Download patch
Index: fusl/src/thread/lock_ptc.c
diff --git a/fusl/src/thread/lock_ptc.c b/fusl/src/thread/lock_ptc.c
index 7adedab75b93c168efb0a4ce523b27d4452341d3..3f905f13c2058ff8d03be03776fa6d1c6ddac976 100644
--- a/fusl/src/thread/lock_ptc.c
+++ b/fusl/src/thread/lock_ptc.c
@@ -2,17 +2,14 @@
static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
-void __inhibit_ptc()
-{
- pthread_rwlock_wrlock(&lock);
+void __inhibit_ptc() {
+ pthread_rwlock_wrlock(&lock);
}
-void __acquire_ptc()
-{
- pthread_rwlock_rdlock(&lock);
+void __acquire_ptc() {
+ pthread_rwlock_rdlock(&lock);
}
-void __release_ptc()
-{
- pthread_rwlock_unlock(&lock);
+void __release_ptc() {
+ pthread_rwlock_unlock(&lock);
}

Powered by Google App Engine
This is Rietveld 408576698